Commit graph

26036 commits

Author SHA1 Message Date
Maciej Cencora
e8f0c8ab9d radeon: add some debugging info 2009-11-29 17:27:47 +01:00
Christoph Bumiller
c332525ad3 nv50: update linkage on rasterizer change
We need to update VP_RESULT_MAP and/or COORD_REPLACE_MAP
when light_twoside and/or point_sprite are changed.
2009-11-29 13:41:47 +01:00
Christoph Bumiller
7494b82905 nv50: match VP outputs to FP inputs ourselves
For each FP input, don't assume that the VP output will be
at the same position, but scan the semantics instead, then
put the correct output reg indices into VP_RESULT_MAP.

Position is still assumed to be the first output/input.

See 07fafc7c93, which renders
previous assumptions incorrect.
2009-11-29 13:41:47 +01:00
Christoph Bumiller
3f471c7948 nv50: don't permanently negate src in emit_ddy 2009-11-29 13:41:47 +01: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
Vinson Lee
ca5a7aadb4 mesa: Fix array out-of-bounds access by _mesa_TexGenf.
_mesa_TexGenf calls _mesa_TexGenfv, which uses the params argument
as an array.
2009-11-29 00:50:48 -05:00
Vinson Lee
d55fb7c835 mesa: Fix array out-of-bounds access by _mesa_TexGeni.
_mesa_TexGeni calls _mesa_TexGeniv, which uses the params argument
as an array.
2009-11-28 23:47:23 -05:00
Vinson Lee
919898e92f dri: Fix potential null pointer dereference in driBindContext. 2009-11-28 23:22:31 -05:00
Vinson Lee
a11d60d14c mesa: Fix array out-of-bounds access in _mesa_TexEnvf.
_mesa_TexEnvf calls _mesa_TexEnvfv, which uses the param argument
as an array.
2009-11-28 22:08:20 -05:00
Maciej Cencora
e5159996a4 radeon: need to flush cs when moving images between mipmap trees 2009-11-28 21:36:59 +01:00
Corbin Simpson
287bdd8e75 util: Fix bad code.
Uf. How embarrassing.
2009-11-28 10:45:17 -08:00
Corbin Simpson
c93dcbfea7 util: Improve bitcount.
Sorry for not pushing this before, it got lost in stashes.
2009-11-28 10:14:42 -08:00
Dave Airlie
6f1bc4267f i965g: link xorg state tracker with -ldrm_intel 2009-11-28 17:44:28 +10:00
Christoph Bumiller
cad14c2542 nv50: do conversion of last insn to 64 bit format first
Simplifies things since the second to last one will then
be converted in the subsequent pass that ensures alignment
automatically.
2009-11-27 21:29:38 +01:00
Christoph Bumiller
510fd280b5 nv50: bswap32 the polygon stipple pattern
The hardware wants the pattern the same way it is
passed to glPolygonStipple.
2009-11-27 21:29:22 +01:00
Christoph Bumiller
e65258abf5 gallium/util: added util_bswap32() 2009-11-27 21:28:56 +01:00
José Fonseca
f62f976e3f mesa: Avoid void pointer arithmetic. 2009-11-27 17:06:12 +00:00
Roland Scheidegger
7fa1bcc05a svga: fix for not using texture width/height/depth arrays 2009-11-27 17:41:42 +01:00
Roland Scheidegger
b748a9f574 r300g,llvmpipe: fix some more merge problems 2009-11-27 17:40:24 +01:00
Roland Scheidegger
c95cbd45c6 Merge branch 'width0'
Conflicts:
	src/gallium/drivers/r300/r300_texture.c
	src/gallium/state_trackers/xorg/xorg_exa.c
	src/mesa/state_tracker/st_cb_texture.c
2009-11-27 17:15:47 +01:00
Keith Whitwell
4236493899 st/xorg: proper fix for compositing after rounding up
Basically don't round up shared textures.  This fixes compiz,
but I'm afraid that rounding up texture sizes here in the driver
is doomed, as it will inevitably break texture wrap modes.
2009-11-27 15:30:18 +00:00
José Fonseca
1310811469 rbug: Mention where the GUI can be found. 2009-11-27 14:55:20 +00:00
José Fonseca
6dd9676a8f svga: Re-add shader dumping. 2009-11-27 14:04:47 +00:00
Keith Whitwell
6810ce005a Revert "st/xorg: fix composite after texture size changes"
This reverts commit 124ae59680.

Pushed by mistake
2009-11-27 14:03:10 +00:00
Keith Whitwell
124ae59680 st/xorg: fix composite after texture size changes 2009-11-27 13:59:22 +00:00
José Fonseca
dc86f4a20b wgl: Fix copy'n'paste typo in comment. 2009-11-27 13:35:04 +00:00
José Fonseca
135d7e1299 svga: Handle comment tokens when dumping. 2009-11-27 13:34:13 +00:00
José Fonseca
d3f26a8420 svga: Use consistent names for public symbol names of shader dumping facilities. 2009-11-27 13:34:07 +00:00
José Fonseca
178407f33c svga: Use consistent file names for dumping facilities. 2009-11-27 13:34:04 +00:00
Keith Whitwell
cf3cdda5cc st/xorg: speculatively round textures up to nearest POT
I'm not sure if this is a great change, but helps with caching.
Probably we want to turn this on/off on a driver-by-driver basis.
2009-11-27 12:24:57 +00:00
Keith Whitwell
e595dd4c17 st/xorg: free last fence 2009-11-27 12:24:57 +00:00
Keith Whitwell
b84b7f19df svga: flush our command buffer after the 8th distinct render target
This helps improve the surface cache behaviour in the face of the
large number of single-use render targets generated by EXA and the xorg
state tracker.  Without this we can reference hundreds of individual
render targets from a command buffer, which leaves little scope for
sharing or reuse of those targets.

Flushing early means we can start reusing textures much sooner.

This shouldn't have much effect on normal 3d rendering as it's pretty
rare to have a command buffer with >8 different render targets in that
world.
2009-11-27 12:24:57 +00:00
Keith Whitwell
b911688b87 svga: add DEBUG_CACHE option 2009-11-27 12:24:57 +00:00
Michal Krol
5285de7c0f vega: Update shader headers.
Drop the 1.1 version suffix.
2009-11-27 10:13:53 +01:00
Michal Krol
9a4e4e035c python/tests: Update shader headers.
Drop the 1.1 version suffix.
2009-11-27 10:13:19 +01:00
Michal Krol
456b5bd5d0 svga: Update text shader header. 2009-11-27 10:11:18 +01:00
Michal Krol
72420daa21 vl: Do not emit tgsi_version token. 2009-11-27 10:07:07 +01:00
Michal Krol
e6133564bf tgsi: Remove tgsi_version token. 2009-11-27 10:06:41 +01:00
Michal Krol
5455e88f1c gallium: Remove tgsi_version token.
Not really needed, never served its purpose.
2009-11-27 09:19:01 +01:00
Vinson Lee
69671df74c svga: Prevent potential null pointer dereference in vmw_surface.c. 2009-11-26 23:03:53 -05:00
Roland Scheidegger
d509f84543 gallium: fix more statetrackers/drivers for not using texture width/height/depth arrays 2009-11-26 22:51:45 +01:00
Michal Krol
884007546c tgsi/exec: Fix orientation of DDY. 2009-11-26 20:41:46 +01:00
Michal Krol
a2c101029d tgsi/exec: Force return from a subroutine at ENDSUB. 2009-11-26 20:41:43 +01:00
Keith Whitwell
3bae72e204 draw: Fix max_index check.
We want to fallback to draw splitting when vertex element indices
might be too high for atomic draw path (currently limited to 4095).
2009-11-26 20:41:41 +01:00
Michal Krol
75df599e30 tgsi/ureg: Add forgotten goto in ureg_DECL_constant(). 2009-11-26 20:41:38 +01:00
José Fonseca
953b74d116 llvmpipe: Fake missing SSSE3 when simulation less capabable machines.
SSE3 != SSSE3 and so far we only use the later.
2009-11-26 11:16:35 +00:00
José Fonseca
da1c40260d llvmpipe: Update/correct CPU requirements.
There are no hard requirements at the moment.

We don't really emit any sse3 yet. Just some ssse3.

Thanks to Roland for spotting these incorrections.
2009-11-26 11:16:34 +00:00
Ian Romanick
0528f40e3b Improve implementation of GL_POINT_SPRITE_COORD_ORIGIN errors
This enum is only supported for OpenGL 2.0.  If a driver supports
OpenGL 1.4 and GL_ARB_point_sprite, using this enum should generate an
error.  This is important because, for example, i915 and i830 can
support GL_ARB_point_sprite, but they cannot support
GL_POINT_SPRITE_COORD_ORIGIN.

This commit just removes the check for NV_point_sprite, which is
completely wrong, and add some comments describing what the code
should do.  I don't see an easy way to check for version >= 2.0 from
inside Mesa.  Perhaps we should add an extension
GL_MESA_point_sprite_20 (like Intel's old GL_EXT_packed_pixels_12) to
indicate that this added bit of functionality is available.

Also note that glean's pointSprite test only checks for
GL_ARB_point_sprite before trying to use
GL_POINT_SPRITE_COORD_ORIGIN.  Naturally, that fails on
non-2.0 implementations (i.e., Mac OS X on GMA 950).
2009-11-25 16:31:28 -08:00
Roland Scheidegger
4dcdf3b9c6 Merge commit 'origin/st-shader-varients'
Conflicts:
	src/mesa/state_tracker/st_atom_shader.c
	src/mesa/state_tracker/st_program.c
2009-11-26 01:15:25 +01:00
Michal Krol
e13add8cae tgsi: Fix token builder. 2009-11-25 16:08:36 +01:00