Commit Graph

26205 Commits

Author SHA1 Message Date
Brian fce61f341f gallium: fix bad ptr comparison 2008-02-20 15:09:44 -07:00
Brian fd4bdd020a cell: rename cell_state_fs.c -> cell_state_shader.c 2008-02-20 14:32:43 -07:00
Brian 6468347375 cell: init shader-related functions in cell_init_shader_functions() 2008-02-20 14:30:50 -07:00
Brian 9e57e70b42 cell: #includes to silence warnings 2008-02-20 14:27:08 -07:00
Brian f6e1654e22 cell: plug in cell_set_sampler_texture 2008-02-20 14:25:07 -07:00
Brian acd2253ae8 Remove obsolete files replaced by cell_pipe_state.c 2008-02-20 14:24:46 -07:00
Brian 9171e63f41 cell: put most simple state-setter functions in new cell_pipe_state.c file
Also, re-org of texture/surface functions.
2008-02-20 14:21:45 -07:00
Brian 4eae65c8e0 gallium: re-org of i965 texture/surface code, functions 2008-02-20 14:04:05 -07:00
Brian 882a4b5054 gallium: minor re-org of 915 surface/texture code 2008-02-20 14:00:42 -07:00
Brian d5640a2dbd gallium: new pipe->texture_update() function
Called whenever texture data is changed (glTexImage, glTexSubImage,
glCopyTexSubImage, etc).
2008-02-20 13:24:52 -07:00
Brian 22a0b85eae gallium: use pipe_texture_reference() in sp_tile_cache_set_texture() 2008-02-20 11:15:59 -07:00
Ben Skeggs 759fa5fcc8 nv40: fb state 2008-02-20 17:22:40 +11:00
Ben Skeggs 9cd10d7618 nv40: almost there.. 2008-02-20 17:14:41 +11:00
Ben Skeggs 46c3d0918d nv40: keep track of generated context state vs current channel state 2008-02-20 16:21:28 +11:00
Brian 75a4524f2c gallium: initialize the killmask register to zero before running shader
This fixes mysterious missing fragments when running with SSE.
2008-02-19 16:28:25 -07:00
Brian 4ec46e4869 gallium: add some casts to prevent likely msvc warnings 2008-02-19 14:58:23 -07:00
Brian a2c06c5b5c gallium: don't hard-code attrib slot=0 in setup_fragcoord_coeff() 2008-02-19 14:56:01 -07:00
Brian b1c8fa5b60 gallium: implement correct sampling for RECT targets / unnormalized texcoords 2008-02-19 14:55:18 -07:00
Brian 3e329ea7e4 gallium: updated cell build
Building on Ian's Cell build fix.
Put libcell.a in the gallium/drivers/cell/ directory.
General Makefile clean-up, simplification, updated comments.
2008-02-19 11:14:54 -07:00
Ian Romanick 66be2810c3 Cell: emit vertex shaders and uniforms more intelligently 2008-02-19 08:41:04 -08:00
Ian Romanick 4362c6e59d Cell: trivial clean-ups 2008-02-19 08:41:04 -08:00
José Fonseca b9da3791c9 Remove src/mesa and src/mesa/main from gallium source include paths. 2008-02-19 15:07:53 +09:00
José Fonseca 5d78212d75 Bring in ppc spe rtasm into gallium's rtasm module.
Moving files since these are not being used outside gallium.
2008-02-19 14:06:11 +09:00
José Fonseca 90b2beb661 Simplify makefile boilerplate code.
Don't define ASM_SOURCES variable globally -- reserve that variable to be defined
locally by makefiles, together with C_SOURCES and CPP_SOURCES.
2008-02-19 14:06:11 +09:00
José Fonseca f430d95a36 Use gallium's rtasm module. 2008-02-19 14:01:49 +09:00
José Fonseca e279b1c57a More llvm -> gallivm.
Forgot this one on the last commit.
2008-02-19 14:01:49 +09:00
Brian 6c7f663cb9 gallium: move draw_set_viewport_state() call, plus code clean-up, remove obsolete comments 2008-02-18 18:39:55 -07:00
Brian ae9931dad2 gallium: call draw_flush() for scissor/stipple state changes 2008-02-18 18:36:20 -07:00
Brian aceeb80d4f gallium: antialiased line drawing
New draw/prim stage: draw_aaline.  When installed, lines are replaced by
textured quads to do antialiasing.  The current user-defined fragment shader
is modified to do a texture fetch and modulate fragment alpha.
2008-02-18 16:19:05 -07:00
José Fonseca 687a8b96ef Standardize on using the pipe/ include prefix. 2008-02-18 20:02:42 +09:00
José Fonseca 33ceb6716a Update scons build for new code layout. 2008-02-18 10:52:44 +00:00
Ben Skeggs c0f9cab905 nouveau: cleanups + fixes 2008-02-18 18:23:12 +11:00
Ben Skeggs 9a5dd26fe2 nv40: and vertprog.. 2008-02-18 17:36:24 +11:00
Ben Skeggs 4a9cb97bbf nv40: get fragprog onto new state mechanism 2008-02-18 17:07:59 +11:00
José Fonseca 39fe5851a5 Actually use GALLIUM_DRIVER_DIRS. 2008-02-18 15:07:17 +09:00
Ben Skeggs 56045da083 nv40: move some things around 2008-02-18 16:38:27 +11:00
Ben Skeggs 112ba3355a nv40: until gallium is fixed we'll need a fallback for user clip planes 2008-02-18 16:26:33 +11:00
José Fonseca bfd5916eaf Code reorganization: split gallium and mesa makefiles.
In other words, don't build src/gallium source code from within src/mesa/Makefile.

Also, allow to customize which gallium auxiliary dirs, driver driver, winsys
dirs get built from the config/* files.
2008-02-18 14:25:04 +09:00
Ben Skeggs f911235f64 nouveau: header update 2008-02-18 15:32:42 +11:00
Ben Skeggs 037570fa5a nv40: obey polygon offset state
Almost sure this isn't entirely correct.  However, I'm not sure what
gallium expects yet, and this fixes some bugs, so it'll do for now.
2008-02-18 15:29:02 +11:00
Ben Skeggs 12e0aa7b1d nv40: similar changes to polygon stipple as were done for scissor 2008-02-18 14:12:58 +11:00
Ben Skeggs 5e091b573a nv40: ensure scissor gets disabled where necessary
Fixes progs/demos/lodbias.

Makes a complete mess of things, but now there's a motivation to finish
this off :)
2008-02-18 12:46:25 +11:00
Ben Skeggs 9a6c39bd2e Merge branch 'upstream-gallium-0.1' into nouveau-gallium-0.1 2008-02-18 12:45:56 +11:00
Brian 0c6bbd41bd gallium: add missing mip level clamp 2008-02-16 13:55:47 -07:00
Brian 3b2a291888 gallium: tweak texture filter min/mag thresholds 2008-02-16 13:50:31 -07:00
Brian 08c9534107 gallium: implement min vs. mag filter determination for non-mipmapped textures
Fixes tests/minmag.c
2008-02-16 10:05:24 -07:00
Ben Skeggs 26add9288c nouveau: match gallium code reorginisation.
That was... fun..
2008-02-16 17:23:12 +11:00
Ian Romanick 3320b1874e Cell: Enable code gen for SPE attribute fetch
Doubles are still unsupported.
2008-02-15 11:03:54 -08:00
Ian Romanick 397b81bd1c Move cell_vertex_fetch.c for recent code reorg. 2008-02-15 09:43:13 -08:00
Keith Whitwell e822e09b89 softpipe: rename some functions to disambiguate 2008-02-15 13:35:46 +00:00
Keith Whitwell 30d0bacf7a Merge commit 'origin/gallium-0.1' into gallium-0.1 2008-02-15 11:18:04 +00:00
Keith Whitwell 6ac2c1cc0c Merge commit 'origin/gallium-0.1' into gallium-0.1
Conflicts:

	src/gallium/drivers/softpipe/sp_quad_fs.c
	src/gallium/drivers/softpipe/sp_state.h
	src/gallium/drivers/softpipe/sp_state_fs.c
2008-02-15 11:15:47 +00:00
José Fonseca 66f22aa3bf Code reorganization: s/aux/auxiliary/ -- update build. 2008-02-15 20:11:40 +09:00
José Fonseca 6acd63a498 Code reorganization: update build.
Update the Makefiles and includes for the new paths.

Note that there hasn't been no separation of the Makefiles yet, and make is
jumping all over the place. That will be taken care shortly. But for now, make
should work. It was tested with linux and linux-dri. Linux-cell and linux-llvm
might require some minor tweaks.
2008-02-15 17:50:12 +09:00
José Fonseca b642730be9 Code reorganization: move files into their places.
This is in a separate commit to ensure renames are properly preserved.
2008-02-15 17:45:40 +09:00