Vinson Lee
a201dfb6bf
mesa: Fix array out-of-bounds access by _mesa_TexParameterf.
...
_mesa_TexParameterf calls set_tex_parameteri, which uses the params
argument as an array.
2009-11-29 18:18:23 -05:00
Richard Li
a1b9c4e22a
r600 : clena up a bit for last commit.
2009-11-29 12:33:14 -05:00
Richard Li
2db72f329f
r600 : add read port allocation for uniform;
...
mapping ps input based on vs output;
fix bugs including constants updating for vs.
2009-11-29 12:33:14 -05:00
Maciej Cencora
63c00c53a3
radeon: update miptree code a little
...
Simplify gl image level <-> miptree level mapping (are equal now).
Don't allocate miptree for images that won't fit in it (fixes #25230 ).
2009-11-29 17:27:48 +01:00
Maciej Cencora
2773556d55
radeon: don't check the same miptree many times when looking for matching miptrees
2009-11-29 17:27:47 +01:00
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
2348f6d490
scons: Promote pointer arithmetic to error.
...
All code covered by scons is being built on multiple OSes, so pointer
arithmetic must really be addressed when spotted.
2009-11-27 17:06:12 +00:00
José Fonseca
5976d8e6f1
configs: Warn about pointer arithmetic.
...
It's not portable. Warn to help catching it early.
2009-11-27 17:06:12 +00: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