Commit Graph

21 Commits

Author SHA1 Message Date
Michal Krol 7ca0ce3834 Implement draw_arrays_instanced() in softpipe.
Modify the translate module to respect instance divisors and accept
instance id as a parameter to calculate input vertex offset.
2009-12-29 23:21:01 +01:00
Roland Scheidegger a0127b6ced gallium: more work for edgeflags changes
fixes, cleanups, etc.
not working yet
2009-12-14 18:36:33 +01:00
Michal Krol 8a619e62bf sp: Implement separate vertex sampler state. 2009-12-01 09:52:32 +01:00
Keith Whitwell 4fc7d0345a softpipe: rework texture sampling code
Split into component pieces, stitch together at runtime using function
pointers.  Make it possible to utilize the existing fastpaths as image-level
filters for generic mip-filtering routines.

Remove special case for rectangle filtering, as it can now be handled by
the 2d path.

As most of the mesa demo texturing was already covered by fast paths, its
harder to find examples of speedups, but tunnel gets a boost as mip-nearest
filtering is now able to access the img_2d_linear_wrap_POT functions
for sampling within a mipmap level.
2009-08-21 18:14:19 +01:00
Keith Whitwell fa0f48504a gallium: no need to keep a copy of shader tokens in state tracker
Any driver who needs a copy of the shader tokens must organize to
do so itself.  This has been the case for a long time, but there
was still defensive code in the state tracker, which is now removed.

Any bugs resulting from this need to be fixed in the offending driver...
2009-03-13 16:24:22 +00:00
Michel Dänzer 4617981ec7 gallium: No longer allow CPU mapping surfaces directly.
Instead, a new pipe_transfer object has to be created and mapped for
transferring data between the CPU and a texture. This gives the driver more
flexibility for textures in address spaces that aren't CPU accessible.

This is a first pass; softpipe/xlib builds and runs glxgears, but it only shows
a black window. Looks like something's off related to the Z buffer, so the
depth test always fails.
2009-02-05 19:41:18 +01:00
Michal Krol 152db5b884 softpipe: Fix function prototype. 2008-11-25 13:01:06 +01:00
José Fonseca c208a2c791 Merge tgsi/exec and tgsi/util directories. 2008-07-28 12:42:13 +09:00
Keith Whitwell 82605d7bcd draw: draw_range_elements trial 2008-05-29 11:48:04 +01:00
Brian Paul 9671f7ae47 gallium: in drivers, make copy of tokens passed to pipe->create_vs/fs_state()
The caller can then free the token array immediately.
2008-05-17 10:30:21 -06:00
Brian Paul 9816531862 gallium: plug in softpipe_set_edgeflags() function 2008-04-24 15:59:08 -06:00
Brian Paul a52c0416d1 gallium: Set vertex state/buffers en-mass. 2008-03-29 14:41:03 +01:00
Brian 08e341e5dc gallium: remove DOS carriage returns 2008-03-14 16:01:23 -06:00
Keith Whitwell 4528287e04 gallium: michel's patch to rework texture/sampler binding interface
Bind all the samplers/textures at once rather than piecemeal.
This is easier for drivers to understand.
2008-03-05 10:56:49 +01:00
Brian 80a9b5e1d9 gallium: remove unnecessary tgsi_interp_coef decl 2008-02-27 15:11:57 -07:00
Brian c66ec5c7a2 gallium: remove uses_kill field from softpipe_shader 2008-02-27 15:11:57 -07:00
Brian f74279002a gallium: added tgsi_shader_field to sp_fragment_shader
Use the shader semantic info from there, instead of from pipe_shader_state.
Carry this idea to draw module and other drivers...
2008-02-26 10:13:39 -07:00
Brian 012391357f gallium: disable early Z test if fragment shader contains KIL instruction.
Use tgsi_scan_shader() to determine if the fragment shader uses KIL or
writes fragment.z
2008-02-23 16:17:17 -07:00
José Fonseca e9bb63c8e2 gallium: MSVC fixes. 2008-02-24 02:23:12 +09: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 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
Renamed from src/mesa/pipe/softpipe/sp_state.h (Browse further)