Commit Graph

170 Commits

Author SHA1 Message Date
José Fonseca 38f6f23fcf gallium: Make pipe_atomic a regular int32_t. 2010-02-02 14:43:48 +00:00
José Fonseca 28486880ca gallium: pipe/p_inlines.h -> util/u_inlines.h 2010-02-02 14:42:17 +00:00
Vinson Lee dfd76c0044 i965g: Add missing va_end. 2010-01-31 23:47:07 -08:00
Luca Barbieri 6c403750d6 tgsi: add caps for fragment coord conventions (v3)
Changes in v3:
- Renumber caps to accomodate caps to add to master in the meantime
- Document caps
- Add unsupported caps to *_screen.c too

Changes in v2:
- Split for properties patch
- Use positive caps instead of negative caps

This adds 4 caps to indicate support of each of the fragment coord
conventions.

All drivers are also modifed to add the appropriate caps.

Some drivers were incorrectly using non-Gallium-default conventions,
and caps for them have them set so that they will behave correctly
after the later state tracker patches.

This drivers are softpipe/llvmpipe (uses integer rather than half
integer) and pre-nv50 Nouveau (uses lower left rather than upper left).

Other drivers might be broken. With this patchset, fixing them is
only a matter of exposing the appropriate caps that match the behavior
of the existing code.

Drivers are encouraged to support all conventions themselves for better
performance, and this feature is added to softpipe in a later patch.
2010-01-29 14:13:14 +01:00
Roland Scheidegger 9b346f83a7 Merge commit 'origin/perrtblend'
Conflicts:
	src/gallium/drivers/softpipe/sp_screen.c
	src/gallium/include/pipe/p_defines.h
2010-01-28 17:23:58 +01:00
Vinson Lee 83e6ba564c i965g: Remove unnecessary headers. 2010-01-27 15:54:21 -08:00
Vinson Lee 25b8ce3a6a i965g: Silence uninitialized variable warning. 2010-01-26 17:00:15 -08:00
Roland Scheidegger 4e0c825a79 i965g: adapt to blend changes 2010-01-25 16:37:27 +01:00
Alan Coopersmith 208e815c88 gallium/i965: Make brw_batchbuffer prototypes match in source & header
Signed-off-by: Alan Coopersmith <alan.coopersmith@sun.com>
Signed-off-by: Brian Paul <brianp@vmware.com>
2010-01-20 18:06:34 -08:00
Roland Scheidegger 5e5d0ad081 Merge branch 'gallium-noconstbuf'
Conflicts:
	src/gallium/drivers/softpipe/sp_draw_arrays.c
	src/mesa/state_tracker/st_draw_feedback.c
2010-01-15 18:09:45 +01:00
Roland Scheidegger 70c8d2a297 gallium: remove const qualifier from pipe_buffer argument in set_constant_buffer 2010-01-11 16:30:48 +01:00
Keith Whitwell 150108024d i965g: updates for draw retval 2010-01-07 15:37:41 +00:00
Brian Paul 1b5476a353 i965g: fix invalid assertion in emit_xpd(), again 2010-01-06 07:18:04 -07:00
Luca Barbieri f023473748 gallium: remove PIPE_TEX_FILTER_ANISO
This patch removes PIPE_TEX_FILTER_ANISO.

Anisotropic filtering is enabled if and only if max_anisotropy > 1.0.
Values between 0.0 and 1.0, inclusive, of max_anisotropy are to be
considered equivalent, and meaning to turn off anisotropic filtering.

This approach has the small drawback of eliminating the possibility of
enabling anisotropic filter on either minification or magnification
separately, which Radeon hardware seems to support, is currently
support by Gallium but not exposed to OpenGL.  If this is actually
useful it could be handled by splitting max_anisotropy in two values
and adding an appropriate OpenGL extension.

NOTE: some fiddling & reformatting by keithw to get this patch to
apply.  Hopefully nothing broken in the process.
2010-01-06 10:35:47 +00:00
Brian Paul 15b05c54b7 i965g: fix invalid assertion in emit_xpd()
Invalid assertion found by Roel Kluin <roel.kluin@gmail.com>
2010-01-05 15:54:50 -07:00
Vinson Lee bfc34c8804 i965g: Fix assert. 2010-01-04 11:28:37 -08:00
José Fonseca 6f19ec64fc i965: Add missing include. 2010-01-02 00:01:43 +00:00
Keith Whitwell 5f6dcf65e7 i965g: get trivial/tri working again after edgeflag changes 2009-12-24 12:53:07 +00:00
Keith Whitwell 6c30e17f9e i965g: strict aliasing changes 2009-12-24 12:53:06 +00:00
Keith Whitwell 9546c3dbd2 i965g: calculate depth min/max
Previously hard-wired to 0..1
2009-12-24 12:53:06 +00:00
Roland Scheidegger 1278507e3b gallium: adapt drivers to pipe_constant_buffer removal 2009-12-24 00:55:49 +01:00
Tomas Carnecky cc7a2d8e64 i965g: Rename {pf->util_format}_is_depth_or_stencil() 2009-12-23 16:58:53 +01:00
Tomas Carnecky 315ca95666 [i965] Rename {pf -> util}_format_is_depth_or_stencil()
The function was moved and renamed in 0bed834b.

Signed-off-by: Tomas Carnecky <tom@dbservice.com>
2009-12-23 15:40:20 +00:00
Roland Scheidegger d186079520 i965g: fix for edgeflag changes (untested) 2009-12-22 21:26:51 +01:00
Keith Whitwell f069e45750 i965g: fix bo_reference 2009-12-22 09:57:16 +00:00
Keith Whitwell 96d63ebbf5 i965g: update for u_format changes 2009-12-22 09:52:26 +00:00
Keith Whitwell 0fc4dd3819 i965g: fixes to build after merge of master 2009-12-21 19:50:05 +00:00
Keith Whitwell f72de22439 i965g: remove half-finished change to tgsi_parse 2009-12-21 19:22:45 +00:00
Keith Whitwell 061411b261 i965g: hook vertex state emit up to PIPE_NEW_VERTEX_BUFFER 2009-12-21 16:57:37 +00:00
Keith Whitwell 1ec7e058f5 i965g: keep refcounts to bound vertex buffers 2009-12-21 16:56:46 +00:00
Keith Whitwell 6c719d4c22 i965g: add DEBUG_WINSYS flag 2009-12-21 16:55:40 +00:00
Keith Whitwell f217927a57 i965g: remove duplicate set_viewport_state, fixes samples/depth 2009-12-21 15:38:08 +00:00
Keith Whitwell ba4cb8b2ca i965g: nasty hack for clearing y-tiled surfaces 2009-12-01 17:04:46 +00:00
Keith Whitwell 63a8637c74 i965g: add missing header 2009-12-01 16:39:02 +00:00
Keith Whitwell eb68acaf6d i965g: don't reference unused vars in RSQ
Probably overly pedantic
2009-12-01 16:33:59 +00:00
Keith Whitwell bb1cde755b i965g: turn on texture tiling by default 2009-11-30 16:16:30 +00:00
Keith Whitwell 6781f624af i965g: pass backbuffer tiling information to driver
The gem winsys gets this information, needs to pass it on.
2009-11-30 15:37:27 +00:00
Keith Whitwell cddc7e3a9c brw: add dumping to gem winsys 2009-11-30 15:37:27 +00:00
Keith Whitwell 4490122d0c i965g: remove redundant nr_attrs member 2009-11-30 15:37:27 +00:00
Dave Airlie ca9b0e942c i965g: remove surface from views list before freeing
this fixes a crash with the xorg state tracker, however it then locks
up the GPU once rendering is enabled but at least it doesn't crash.

Signed-off-by: Dave Airlie <airlied@linux.ie>
2009-11-29 18:59:19 +10:00
Keith Whitwell 0a89ad80d9 i965g: gs nr_attrs also tracks nr fragment shader inputs
Or, equivalently, nr of outputs of active vertex shader varient.
2009-11-23 03:06:58 +00:00
Keith Whitwell cd0e6619e6 i965g: correct test for unfilled modes 2009-11-23 03:00:47 +00:00
Keith Whitwell 968a7dfb29 i965g: use correct key size for vs upload 2009-11-23 01:47:57 +00:00
Keith Whitwell 21172d4358 i965g: apply linear math to both linear and perspective attrs 2009-11-23 00:58:13 +00:00
Keith Whitwell 8bf75f28de i965g: get basic texturing working again
Revert to fixed-layout surface binding table -- it's probably the best
way to do this.  Pass sampler and texture numbers separately even
though we're always keeping them the same at present.
2009-11-21 01:52:22 +00:00
Keith Whitwell 95d7aca4b9 i965g: fix typo converting wm src regs 2009-11-19 20:40:41 -08:00
Keith Whitwell 9507a6c206 i965g: fragment shader immediates working 2009-11-19 20:02:42 -08:00
Keith Whitwell 63b0af0775 i965g: first pass at vs immediates in curbe 2009-11-19 19:51:14 -08:00
Keith Whitwell d2f4c80c8b i965g: get linear vs perspective interpolation working again 2009-11-19 19:41:25 -08:00
Keith Whitwell 4fb77ef840 i965g: include interpolation info in fs signature 2009-11-19 19:31:32 -08:00