mesa.git
14 years agor300g: Begin separating HW TCL and SW TCL state and setup.
Corbin Simpson [Sun, 15 Nov 2009 04:25:15 +0000 (05:25 +0100)]
r300g: Begin separating HW TCL and SW TCL state and setup.

This patch removes draw_context entirely from the HW TCL path and cleans up
a few other things along the way. Hopefully, nothing got broken.

Thanks to Marek Olšák for testing, review, and pointing out my bugs. :3

14 years agost/egl: Fix memory leak in egl_tracker.c.
Vinson Lee [Sat, 21 Nov 2009 00:33:25 +0000 (16:33 -0800)]
st/egl: Fix memory leak in egl_tracker.c.

14 years agodraw: Initialize variable in draw_pt.c.
Vinson Lee [Sat, 21 Nov 2009 00:03:48 +0000 (16:03 -0800)]
draw: Initialize variable in draw_pt.c.

14 years agoprogs/xdemos: Fix memory leak in pbinfo.c.
Vinson Lee [Fri, 20 Nov 2009 23:52:53 +0000 (15:52 -0800)]
progs/xdemos: Fix memory leak in pbinfo.c.

14 years agoprogs/xdemos: Fix memory leak in pbdemo.c.
Vinson Lee [Fri, 20 Nov 2009 23:48:29 +0000 (15:48 -0800)]
progs/xdemos: Fix memory leak in pbdemo.c.

14 years agoprogs/xdemos: Fix memory leak in glxpbdemo.c.
Vinson Lee [Fri, 20 Nov 2009 23:18:19 +0000 (15:18 -0800)]
progs/xdemos: Fix memory leak in glxpbdemo.c.

14 years agor300g: emit R300_TEX_ENABLE to indicate there are no textures bound
Marek Olšák [Fri, 20 Nov 2009 04:17:00 +0000 (05:17 +0100)]
r300g: emit R300_TEX_ENABLE to indicate there are no textures bound

Previously, this reg wasn't emitted at all if texture_count == 0.

14 years agor300g: remove variant states from emit_state_invariant
Marek Olšák [Thu, 19 Nov 2009 20:07:20 +0000 (21:07 +0100)]
r300g: remove variant states from emit_state_invariant

14 years agoprogs/xdemos: Remove duplicate code in glxinfo.c.
Vinson Lee [Fri, 20 Nov 2009 23:06:56 +0000 (15:06 -0800)]
progs/xdemos: Remove duplicate code in glxinfo.c.

14 years agoprogs/xdemos: Add assert in corender.c.
Vinson Lee [Fri, 20 Nov 2009 23:03:16 +0000 (15:03 -0800)]
progs/xdemos: Add assert in corender.c.

14 years agor300g: Texrect factor cleanup.
Corbin Simpson [Fri, 20 Nov 2009 22:55:22 +0000 (14:55 -0800)]
r300g: Texrect factor cleanup.

(0, 0, 0, 1) is a much saner default value, and texrect factors only need
to be (1/s, 1/t, 0, 1).

14 years agor300g: fix rectangle textures on r3xx
Marek Olšák [Sat, 14 Nov 2009 21:14:42 +0000 (22:14 +0100)]
r300g: fix rectangle textures on r3xx

Adapted from Maciej Cencora's patch.

14 years agoi915g: Add missing break statement in i915_debug.c.
Vinson Lee [Fri, 20 Nov 2009 22:31:42 +0000 (14:31 -0800)]
i915g: Add missing break statement in i915_debug.c.

14 years agogallium/util: Initialize variables in u_pack_color.h.
Vinson Lee [Fri, 20 Nov 2009 22:20:15 +0000 (14:20 -0800)]
gallium/util: Initialize variables in u_pack_color.h.

14 years agor300g: Clean up bitcounting function.
Corbin Simpson [Fri, 20 Nov 2009 22:10:59 +0000 (14:10 -0800)]
r300g: Clean up bitcounting function.

I didn't see this in u_math; surely somebody else has this wheel
reinvented elsewhere.

14 years agor300g: Use MAX3 and MIN3.
Corbin Simpson [Fri, 20 Nov 2009 22:10:45 +0000 (14:10 -0800)]
r300g: Use MAX3 and MIN3.

14 years agoutil: Add MAX3 and MIN3.
Corbin Simpson [Fri, 20 Nov 2009 22:08:58 +0000 (14:08 -0800)]
util: Add MAX3 and MIN3.

14 years agor300g: set better values in the R300_VAP_CNTL register
Marek Olšák [Thu, 19 Nov 2009 00:35:08 +0000 (01:35 +0100)]
r300g: set better values in the R300_VAP_CNTL register

14 years agoFix comment to use /* */ rather than //
Alan Hourihane [Fri, 20 Nov 2009 18:11:30 +0000 (18:11 +0000)]
Fix comment to use /* */ rather than //

14 years agoFix indentation.
Alan Hourihane [Fri, 20 Nov 2009 18:10:54 +0000 (18:10 +0000)]
Fix indentation.

14 years agoFix vega compilation.
Alan Hourihane [Fri, 20 Nov 2009 18:09:10 +0000 (18:09 +0000)]
Fix vega compilation.

14 years agoFix memory leak.
Alan Hourihane [Fri, 20 Nov 2009 18:08:29 +0000 (18:08 +0000)]
Fix memory leak.

14 years agor600 : eliminate Wondows line ending for test code.
Richard Li [Fri, 20 Nov 2009 15:58:05 +0000 (10:58 -0500)]
r600 : eliminate Wondows line ending for test code.

14 years agoMerge remote branch 'origin/mesa_7_7_branch'
Dave Airlie [Fri, 20 Nov 2009 01:48:10 +0000 (11:48 +1000)]
Merge remote branch 'origin/mesa_7_7_branch'

14 years agor100: fix texture_from_pixmap and compiz.
Dave Airlie [Fri, 20 Nov 2009 01:45:43 +0000 (11:45 +1000)]
r100: fix texture_from_pixmap and compiz.

r100 state emission has separate rect and non-rect states,
if we are doing TFP for a TEXTURE_2D we shouldn't use the rect
states as they won't get emitted properly.

Signed-off-by: Dave Airlie <airlied@redhat.com>
14 years agor600 : Clean up a bit test code mess.
Richard Li [Thu, 19 Nov 2009 22:41:10 +0000 (17:41 -0500)]
r600 : Clean up a bit test code mess.

14 years agost/xorg: Fix infinite loop in copy_packed_data.
Vinson Lee [Thu, 19 Nov 2009 22:38:39 +0000 (14:38 -0800)]
st/xorg: Fix infinite loop in copy_packed_data.

14 years agogallium: don't use arrays for texture width,height,depth
Keith Whitwell [Thu, 19 Nov 2009 22:39:34 +0000 (14:39 -0800)]
gallium: don't use arrays for texture width,height,depth

14 years agoprogs/xdemos: Add missing break statement in offset.c.
Vinson Lee [Thu, 19 Nov 2009 22:20:26 +0000 (14:20 -0800)]
progs/xdemos: Add missing break statement in offset.c.

14 years agost/mesa: replace st_flush() with pipe->flush()
Brian Paul [Thu, 19 Nov 2009 22:18:17 +0000 (15:18 -0700)]
st/mesa: replace st_flush() with pipe->flush()

We only need to flush the gallium driver in this case.
Fixes a recursive state validation bug.

14 years agovbo: added recursion check in vbo_exec_FlushVertices()
Brian Paul [Thu, 19 Nov 2009 22:17:56 +0000 (15:17 -0700)]
vbo: added recursion check in vbo_exec_FlushVertices()

14 years agor600 : change shader pop method for now.
Richard Li [Thu, 19 Nov 2009 21:55:16 +0000 (16:55 -0500)]
r600 : change shader pop method for now.

14 years agost/mesa: get rid of compressed_num_bytes() code
Brian Paul [Thu, 19 Nov 2009 21:35:38 +0000 (14:35 -0700)]
st/mesa: get rid of compressed_num_bytes() code

14 years agost/mesa: remove is_compressed_mesa_format()
Brian Paul [Thu, 19 Nov 2009 21:17:09 +0000 (14:17 -0700)]
st/mesa: remove is_compressed_mesa_format()

14 years agost/mesa: remove pointless assertion
Brian Paul [Thu, 19 Nov 2009 21:10:57 +0000 (14:10 -0700)]
st/mesa: remove pointless assertion

14 years agosoftpipe: whitespace/indentation fixes
Brian Paul [Thu, 19 Nov 2009 21:02:06 +0000 (14:02 -0700)]
softpipe: whitespace/indentation fixes

14 years agoMerge branch 'master' of ssh://richardradeon@git.freedesktop.org/git/mesa/mesa
Richard Li [Thu, 19 Nov 2009 21:17:13 +0000 (16:17 -0500)]
Merge branch 'master' of ssh://richardradeon@git.freedesktop.org/git/mesa/mesa

14 years agor600 : check in shader code test enable flag: if flag
Richard Li [Thu, 19 Nov 2009 21:05:43 +0000 (16:05 -0500)]
r600 : check in shader code test enable flag: if flag
R600_ENABLE_GLSL_TEST defined, IL shader code will goto r600 assembler.
The test base is /mesa/progs/glsl/brick, and changes
shader code in CH06-brick.frag/vert to test different logic op
combination. (if,else,while,function,...). The stack depth code is not
in yet, so it is hard coded now. So complex code would not run (such as
things like 8 loops embeded loop in loop).

14 years agoprogs/trivial: Redraw upon keypress.
Vinson Lee [Thu, 19 Nov 2009 21:03:12 +0000 (13:03 -0800)]
progs/trivial: Redraw upon keypress.

14 years agopb: Make fenced buffers threadsafe.
José Fonseca [Thu, 19 Nov 2009 19:46:21 +0000 (19:46 +0000)]
pb: Make fenced buffers threadsafe.

14 years agosoftpipe: add missing check in softpipe_is_texture_referenced()
Brian Paul [Thu, 19 Nov 2009 18:37:50 +0000 (11:37 -0700)]
softpipe: add missing check in softpipe_is_texture_referenced()

Check if the named texture is referenced by the texture cache.

14 years agost/xorg: Replace compile-time acceleration switch with Option "2DAccel".
Michel Dänzer [Thu, 19 Nov 2009 16:52:55 +0000 (17:52 +0100)]
st/xorg: Replace compile-time acceleration switch with Option "2DAccel".

This option can be used to disable 2D acceleration. DRI2 and XVideo blits will
still be accelerated, at least to some degree even with compositing.

14 years agost/xorg: Miscellaneous XVideo fixes.
Michel Dänzer [Thu, 19 Nov 2009 16:47:21 +0000 (17:47 +0100)]
st/xorg: Miscellaneous XVideo fixes.

* Make sure the destination pixmap has a texture to render into.
* Fix damage reporting so the EXA migration code can do the right thing.
* Fix destination coordinates for redirected windows.

14 years agost/xorg: Try harder to ensure a shared texture has valid contents right away.
Michel Dänzer [Thu, 19 Nov 2009 16:30:32 +0000 (17:30 +0100)]
st/xorg: Try harder to ensure a shared texture has valid contents right away.

14 years agost/xorg: Don't complain about convolution filter being 'unknown'.
Michel Dänzer [Thu, 19 Nov 2009 16:25:05 +0000 (17:25 +0100)]
st/xorg: Don't complain about convolution filter being 'unknown'.

Also add a newline to the complaint so it'll be a little less annoying if we
actually encounter an unknown filter value again.

14 years agointel: Remove non-GEM support.
Eric Anholt [Wed, 18 Nov 2009 17:15:25 +0000 (18:15 +0100)]
intel: Remove non-GEM support.

This really isn't supported at this point.  GEM's been in the kernel for
a year, and the fake bufmgr never really worked.

14 years agointel: Remove dead intel_context members and move some packing around.
Eric Anholt [Wed, 18 Nov 2009 11:43:16 +0000 (03:43 -0800)]
intel: Remove dead intel_context members and move some packing around.

14 years agointel: Remove our special color packing macros and just use colormac.h.
Eric Anholt [Wed, 18 Nov 2009 11:39:20 +0000 (03:39 -0800)]
intel: Remove our special color packing macros and just use colormac.h.

14 years agointel: Pack colors for blit at blit time, rather than at ClearColor.
Eric Anholt [Wed, 18 Nov 2009 11:32:35 +0000 (03:32 -0800)]
intel: Pack colors for blit at blit time, rather than at ClearColor.

14 years agointel: Consistently use no_batch_wrap in intel_context struct.
Eric Anholt [Wed, 18 Nov 2009 11:21:17 +0000 (03:21 -0800)]
intel: Consistently use no_batch_wrap in intel_context struct.

14 years agoi965: Pack brw_wm_fragment_program better.
Eric Anholt [Wed, 18 Nov 2009 11:13:14 +0000 (03:13 -0800)]
i965: Pack brw_wm_fragment_program better.

14 years agomesa: Remove gratuitous padding in prog_dst_register.
Eric Anholt [Wed, 18 Nov 2009 11:05:14 +0000 (03:05 -0800)]
mesa: Remove gratuitous padding in prog_dst_register.

The padding was there to indicate the amount of space left from the
number of expected bytes in the struct minus allocated bits.  But
uint bitfields get packed so that they don't cross uint boundaries, and we
ended up allocating an extra dword to hold the pad field!

14 years agoi965: Pack the brw_wm_prog_key better.
Eric Anholt [Wed, 18 Nov 2009 11:01:42 +0000 (03:01 -0800)]
i965: Pack the brw_wm_prog_key better.

14 years agoi915: Remove dead meta_draw_quad code.
Eric Anholt [Wed, 18 Nov 2009 10:58:15 +0000 (02:58 -0800)]
i915: Remove dead meta_draw_quad code.

14 years agotnl: Replace deprecated FogCoordPtr with AttribPtr[_TNL_ATTRIB_FOG]
Eric Anholt [Wed, 18 Nov 2009 09:45:42 +0000 (01:45 -0800)]
tnl: Replace deprecated FogCoordPtr with AttribPtr[_TNL_ATTRIB_FOG]

14 years agotnl: Replace deprecated ColorPtr[] with AttribPtr or new BackfaceColorPtr.
Eric Anholt [Wed, 18 Nov 2009 09:38:55 +0000 (01:38 -0800)]
tnl: Replace deprecated ColorPtr[] with AttribPtr or new BackfaceColorPtr.

14 years agotnl: Replace deprecated IndexPtr[] with AttribPtr[] or new BackfaceIndexPtr
Eric Anholt [Wed, 18 Nov 2009 07:38:35 +0000 (23:38 -0800)]
tnl: Replace deprecated IndexPtr[] with AttribPtr[] or new BackfaceIndexPtr

14 years agotnl: Replace deprecated ObjPtr with AttribPtr[_TNL_ATTRIB_POS]
Eric Anholt [Wed, 18 Nov 2009 07:27:13 +0000 (23:27 -0800)]
tnl: Replace deprecated ObjPtr with AttribPtr[_TNL_ATTRIB_POS]

14 years agotnl: Replace deprecated TexCoordPtr with AttribPtr[_TNL_ATTRIB_TEX*]
Eric Anholt [Wed, 18 Nov 2009 00:00:53 +0000 (16:00 -0800)]
tnl: Replace deprecated TexCoordPtr with AttribPtr[_TNL_ATTRIB_TEX*]

14 years agotnl: Replace NormalPtr with AttribPtr[_TNL_ATTRIB_NORMAL]
Eric Anholt [Tue, 17 Nov 2009 21:00:01 +0000 (13:00 -0800)]
tnl: Replace NormalPtr with AttribPtr[_TNL_ATTRIB_NORMAL]

14 years agotnl: Remove unused NotifyInputChanges() tnl dd hook.
Eric Anholt [Tue, 17 Nov 2009 19:15:13 +0000 (11:15 -0800)]
tnl: Remove unused NotifyInputChanges() tnl dd hook.

14 years agost/xorg: Remove superfluous flushes from the EXA WaitMarker hook.
Michel Dänzer [Thu, 19 Nov 2009 09:54:49 +0000 (10:54 +0100)]
st/xorg: Remove superfluous flushes from the EXA WaitMarker hook.

Thanks to Thomas Hellström for pointing this out.

14 years agost/xorg: Don't initialize non-existing fields.
Michel Dänzer [Thu, 19 Nov 2009 09:38:08 +0000 (10:38 +0100)]
st/xorg: Don't initialize non-existing fields.

14 years agoidentity: Add missing screen methods.
Michal Krol [Thu, 19 Nov 2009 07:18:58 +0000 (08:18 +0100)]
identity: Add missing screen methods.

14 years agotgsi: Provide ultimate solution for SOA dependencies in exec.
Michal Krol [Thu, 19 Nov 2009 07:17:25 +0000 (08:17 +0100)]
tgsi: Provide ultimate solution for SOA dependencies in exec.

Reorder STOREs in such a way that they appear after the last FETCH.

14 years agoprogs/tests: Fix memory leak in texdown.c if malloc fails.
Vinson Lee [Thu, 19 Nov 2009 01:30:50 +0000 (17:30 -0800)]
progs/tests: Fix memory leak in texdown.c if malloc fails.

14 years agor600 : update PS and VS emit count for loop constants.
Richard Li [Wed, 18 Nov 2009 19:56:01 +0000 (14:56 -0500)]
r600 : update PS and VS emit count for loop constants.

14 years agor600 : add some defs
Richard Li [Wed, 18 Nov 2009 19:43:59 +0000 (14:43 -0500)]
r600 : add some defs

14 years agor600 : Initial version of glsl fc.
Richard Li [Tue, 17 Nov 2009 21:25:02 +0000 (16:25 -0500)]
r600 : Initial version of glsl fc.

14 years agost/xorg: enable yv12 for xv
Zack Rusin [Wed, 18 Nov 2009 17:06:32 +0000 (12:06 -0500)]
st/xorg: enable yv12 for xv

14 years agost/xorg: Flush any pending operations on upload
Jakob Bornecrantz [Wed, 18 Nov 2009 16:45:39 +0000 (17:45 +0100)]
st/xorg: Flush any pending operations on upload

14 years agost/xorg: Unbind any textures in solid
Jakob Bornecrantz [Wed, 18 Nov 2009 16:38:49 +0000 (17:38 +0100)]
st/xorg: Unbind any textures in solid

Helps debuging with rbug

14 years agoFix vega compilation.
Alan Hourihane [Fri, 20 Nov 2009 18:09:10 +0000 (18:09 +0000)]
Fix vega compilation.

14 years agoFix memory leak.
Alan Hourihane [Fri, 20 Nov 2009 18:08:29 +0000 (18:08 +0000)]
Fix memory leak.

14 years agoprogs/xdemos: Silence unused value warnings in sharedtex_mt.c.
Vinson Lee [Fri, 20 Nov 2009 21:09:42 +0000 (13:09 -0800)]
progs/xdemos: Silence unused value warnings in sharedtex_mt.c.

14 years agoprogs/xdemos: Fix memory leak in glxinfo.c.
Vinson Lee [Fri, 20 Nov 2009 21:01:22 +0000 (13:01 -0800)]
progs/xdemos: Fix memory leak in glxinfo.c.

14 years agoprogs/tests: Silence unused value warnings in sharedtex.c.
Vinson Lee [Fri, 20 Nov 2009 20:48:44 +0000 (12:48 -0800)]
progs/tests: Silence unused value warnings in sharedtex.c.

14 years agomesa: Fix NULL deref in optimizer when NumInstructions == 0.
Eric Anholt [Fri, 20 Nov 2009 20:42:06 +0000 (21:42 +0100)]
mesa: Fix NULL deref in optimizer when NumInstructions == 0.

Bug #24984.

14 years agoprogs/tests: Initialize variable in getprocaddress.c.
Vinson Lee [Fri, 20 Nov 2009 20:34:21 +0000 (12:34 -0800)]
progs/tests: Initialize variable in getprocaddress.c.

14 years agoprogs/util: Exit RawImageGetData early if malloc fails.
Vinson Lee [Fri, 20 Nov 2009 20:11:55 +0000 (12:11 -0800)]
progs/util: Exit RawImageGetData early if malloc fails.

Prevents a null pointer deference later on.

14 years agoprogs/slang: Check for ftell failure in vstest.c.
Vinson Lee [Fri, 20 Nov 2009 19:34:21 +0000 (11:34 -0800)]
progs/slang: Check for ftell failure in vstest.c.

14 years agoprogs/util: Fix memory leak if malloc fails in RawImageOpen.
Vinson Lee [Fri, 20 Nov 2009 19:22:13 +0000 (11:22 -0800)]
progs/util: Fix memory leak if malloc fails in RawImageOpen.

14 years agost/xorg: Fix type of 'unknown'.
Vinson Lee [Fri, 20 Nov 2009 08:03:10 +0000 (00:03 -0800)]
st/xorg: Fix type of 'unknown'.

14 years agoprogs/vpglsl: Fix psiz-mul.glsl compilation error on Mac OS.
Vinson Lee [Fri, 20 Nov 2009 07:56:07 +0000 (23:56 -0800)]
progs/vpglsl: Fix psiz-mul.glsl compilation error on Mac OS.

14 years agoprogs/vp: Fix memory leak in vp-tris.c.
Vinson Lee [Fri, 20 Nov 2009 06:59:01 +0000 (22:59 -0800)]
progs/vp: Fix memory leak in vp-tris.c.

14 years agoprogs/trivial: Redraw upon keypress.
Vinson Lee [Fri, 20 Nov 2009 06:52:05 +0000 (22:52 -0800)]
progs/trivial: Redraw upon keypress.

14 years agoprogs/glsl: Redraw upon keypress.
Vinson Lee [Fri, 20 Nov 2009 06:46:19 +0000 (22:46 -0800)]
progs/glsl: Redraw upon keypress.

14 years agodocs: setup 7.8 release notes file
Brian Paul [Wed, 18 Nov 2009 14:46:17 +0000 (07:46 -0700)]
docs: setup 7.8 release notes file

14 years agomesa: bump version to 7.8
Brian Paul [Wed, 18 Nov 2009 14:25:46 +0000 (07:25 -0700)]
mesa: bump version to 7.8

14 years agomesa: bump version to 7.8
Brian Paul [Wed, 18 Nov 2009 14:25:33 +0000 (07:25 -0700)]
mesa: bump version to 7.8

14 years agost/xorg: Init all functions and fix spelling
Jakob Bornecrantz [Wed, 18 Nov 2009 22:50:26 +0000 (22:50 +0000)]
st/xorg: Init all functions and fix spelling

14 years agoprogs/fp: Redraw upon keypress.
Vinson Lee [Wed, 18 Nov 2009 22:41:40 +0000 (14:41 -0800)]
progs/fp: Redraw upon keypress.

14 years agost/xorg: Make the #if more easier to read
Jakob Bornecrantz [Wed, 18 Nov 2009 19:56:50 +0000 (19:56 +0000)]
st/xorg: Make the #if more easier to read

14 years agost/xorg: Use the correct DRI2BufferPtr struct on 1.6.4 servers
Jakob Bornecrantz [Wed, 18 Nov 2009 19:51:57 +0000 (19:51 +0000)]
st/xorg: Use the correct DRI2BufferPtr struct on 1.6.4 servers

14 years agoprogs/glsl: Fix trirast GLSL compilation errors on Mac OS.
Vinson Lee [Wed, 18 Nov 2009 22:02:20 +0000 (14:02 -0800)]
progs/glsl: Fix trirast GLSL compilation errors on Mac OS.

14 years agoprogs/glsl: Fix noise GLSL compilation error on Mac OS.
Vinson Lee [Wed, 18 Nov 2009 21:50:49 +0000 (13:50 -0800)]
progs/glsl: Fix noise GLSL compilation error on Mac OS.

14 years agor300: allow disabling s3tc support if libtxc_dxtn is available
Maciej Cencora [Wed, 18 Nov 2009 21:19:25 +0000 (22:19 +0100)]
r300: allow disabling s3tc support if libtxc_dxtn is available

14 years agoMerge branch 'radeon-texrewrite-clean' into mesa_7_7_branch
Maciej Cencora [Wed, 18 Nov 2009 21:09:33 +0000 (22:09 +0100)]
Merge branch 'radeon-texrewrite-clean' into mesa_7_7_branch

14 years agor600: align for mipmap tree changes
Maciej Cencora [Wed, 18 Nov 2009 21:02:48 +0000 (22:02 +0100)]
r600: align for mipmap tree changes

14 years agoprogs/glsl: Fix multinoise GLSL compilation errors on Mac OS.
Vinson Lee [Wed, 18 Nov 2009 20:49:31 +0000 (12:49 -0800)]
progs/glsl: Fix multinoise GLSL compilation errors on Mac OS.