mesa.git
16 years agocell: send rasterizer state to SPUs in proper way, remove front_winding hack
Brian Paul [Wed, 15 Oct 2008 20:39:16 +0000 (14:39 -0600)]
cell: send rasterizer state to SPUs in proper way, remove front_winding hack

16 years agocell: query # cells too
Brian Paul [Wed, 15 Oct 2008 20:26:08 +0000 (14:26 -0600)]
cell: query # cells too

16 years agocell: query number SPUs with spe_cpu_info_get()
Brian Paul [Wed, 15 Oct 2008 20:20:10 +0000 (14:20 -0600)]
cell: query number SPUs with spe_cpu_info_get()

16 years agocell: use CELL_MAX_SPUS consistently.
Brian Paul [Wed, 15 Oct 2008 20:18:51 +0000 (14:18 -0600)]
cell: use CELL_MAX_SPUS consistently.

16 years agocell: remove some old, pre-batchbuffer stuff
Brian Paul [Wed, 15 Oct 2008 20:12:55 +0000 (14:12 -0600)]
cell: remove some old, pre-batchbuffer stuff

16 years agocell: move some CELL_MAX constants
Brian Paul [Wed, 15 Oct 2008 19:58:58 +0000 (13:58 -0600)]
cell: move some CELL_MAX constants

16 years agocell: remove obsolete spu_debug.h file
Brian Paul [Wed, 15 Oct 2008 19:56:00 +0000 (13:56 -0600)]
cell: remove obsolete spu_debug.h file

16 years agocell: simplify spu debug code
Brian Paul [Wed, 15 Oct 2008 19:55:18 +0000 (13:55 -0600)]
cell: simplify spu debug code

16 years agocell: propogate blend color to SPUs for the fallback fragment ops code
Brian Paul [Wed, 15 Oct 2008 18:35:51 +0000 (12:35 -0600)]
cell: propogate blend color to SPUs for the fallback fragment ops code

16 years agogallium: fix the shader-rebind test in softpipe, as was done for the draw module.
Brian Paul [Wed, 15 Oct 2008 17:59:34 +0000 (11:59 -0600)]
gallium: fix the shader-rebind test in softpipe, as was done for the draw module.

16 years agogallium: fix the test in vs_exec_prepare() to avoid redundant bindings
Brian Paul [Wed, 15 Oct 2008 17:56:57 +0000 (11:56 -0600)]
gallium: fix the test in vs_exec_prepare() to avoid redundant bindings

Fixes regressions seen in progs/samples/prim.c, progs/demos/ray.c

16 years agogallium: temporariliy revert softpipe shader optimization
Brian Paul [Wed, 15 Oct 2008 16:37:49 +0000 (10:37 -0600)]
gallium: temporariliy revert softpipe shader optimization

16 years agocell: updated vertex dump/debug code
Brian Paul [Wed, 15 Oct 2008 16:54:36 +0000 (10:54 -0600)]
cell: updated vertex dump/debug code

16 years agocell: additional debug
Brian Paul [Wed, 15 Oct 2008 16:54:06 +0000 (10:54 -0600)]
cell: additional debug

16 years agocell: fix/add some fallback blend cases
Brian Paul [Wed, 15 Oct 2008 16:53:48 +0000 (10:53 -0600)]
cell: fix/add some fallback blend cases

16 years agocell: need to flush draw module when constants change
Brian Paul [Wed, 15 Oct 2008 16:43:53 +0000 (10:43 -0600)]
cell: need to flush draw module when constants change

16 years agomesa: revert accidental change to fslight.c demo
Brian Paul [Wed, 15 Oct 2008 16:23:14 +0000 (10:23 -0600)]
mesa: revert accidental change to fslight.c demo

16 years agodraw: don't assume output buffer pointer is aligned
Keith Whitwell [Tue, 7 Oct 2008 15:44:24 +0000 (16:44 +0100)]
draw: don't assume output buffer pointer is aligned
(cherry picked from commit 23cc303994eb630c56b1224dfdac51dcea41ed03)

16 years agoMerge commit 'origin/gallium-0.1' into gallium-0.2
Keith Whitwell [Wed, 15 Oct 2008 16:20:30 +0000 (17:20 +0100)]
Merge commit 'origin/gallium-0.1' into gallium-0.2

Conflicts:

src/mesa/main/context.c

16 years agoUpdate DRI2 implementation according to new specification.
Kristian Høgsberg [Sun, 12 Oct 2008 00:41:14 +0000 (20:41 -0400)]
Update DRI2 implementation according to new specification.

16 years agoRevert pointless reindents to avoid merge conflicts.
Kristian Høgsberg [Wed, 15 Oct 2008 03:07:42 +0000 (23:07 -0400)]
Revert pointless reindents to avoid merge conflicts.

Why are we reindenting code that's work in progress...

16 years agoglx: indent -br -i3 -npcs --no-tabs glxclient.h
RALOVICH, Kristóf [Mon, 13 Oct 2008 13:14:33 +0000 (15:14 +0200)]
glx: indent -br -i3 -npcs --no-tabs glxclient.h

16 years agoglx: indent -br -i3 -npcs --no-tabs glcontextmodes.h
RALOVICH, Kristóf [Mon, 13 Oct 2008 13:13:21 +0000 (15:13 +0200)]
glx: indent -br -i3 -npcs --no-tabs glcontextmodes.h

16 years agoglx: indent -br -i3 -npcs --no-tabs glxextensions.c
RALOVICH, Kristóf [Mon, 13 Oct 2008 13:10:59 +0000 (15:10 +0200)]
glx: indent -br -i3 -npcs --no-tabs glxextensions.c

16 years agoglx: indent -br -i3 -npcs --no-tabs glxextensions.h
RALOVICH, Kristóf [Mon, 13 Oct 2008 13:07:23 +0000 (15:07 +0200)]
glx: indent -br -i3 -npcs --no-tabs glxextensions.h

16 years agoglx: indent -br -i3 -npcs --no-tabs xfont.c
RALOVICH, Kristóf [Mon, 13 Oct 2008 13:04:31 +0000 (15:04 +0200)]
glx: indent -br -i3 -npcs --no-tabs xfont.c

16 years agoglx: indent -br -i3 -npcs --no-tabs xf86dristr.h
RALOVICH, Kristóf [Mon, 13 Oct 2008 13:03:54 +0000 (15:03 +0200)]
glx: indent -br -i3 -npcs --no-tabs xf86dristr.h

16 years agoglx: indent -br -i3 -npcs --no-tabs XF86dri.c
RALOVICH, Kristóf [Mon, 13 Oct 2008 13:03:13 +0000 (15:03 +0200)]
glx: indent -br -i3 -npcs --no-tabs XF86dri.c

16 years agoglx: indent -br -i3 -npcs --no-tabs xf86dri.h
RALOVICH, Kristóf [Mon, 13 Oct 2008 13:02:55 +0000 (15:02 +0200)]
glx: indent -br -i3 -npcs --no-tabs xf86dri.h

16 years agoglx: kill old K&R syntax in XF86dri.c
RALOVICH, Kristóf [Mon, 13 Oct 2008 12:58:33 +0000 (14:58 +0200)]
glx: kill old K&R syntax in XF86dri.c

16 years agoglx: indent -br -i3 -npcs --no-tabs vertarr.c
RALOVICH, Kristóf [Mon, 13 Oct 2008 12:41:33 +0000 (14:41 +0200)]
glx: indent -br -i3 -npcs --no-tabs vertarr.c

16 years agoglx: indent -br -i3 -npcs --no-tabs singlepix.c
RALOVICH, Kristóf [Mon, 13 Oct 2008 12:37:06 +0000 (14:37 +0200)]
glx: indent -br -i3 -npcs --no-tabs singlepix.c

16 years agoglx: indent -br -i3 -npcs --no-tabs single2.c
RALOVICH, Kristóf [Mon, 13 Oct 2008 12:35:18 +0000 (14:35 +0200)]
glx: indent -br -i3 -npcs --no-tabs single2.c

16 years agoglx: indent -br -i3 -npcs --no-tabs renderpix.c
RALOVICH, Kristóf [Mon, 13 Oct 2008 12:34:43 +0000 (14:34 +0200)]
glx: indent -br -i3 -npcs --no-tabs renderpix.c

16 years agoglx: indent -br -i3 -npcs --no-tabs render2.c
RALOVICH, Kristóf [Mon, 13 Oct 2008 12:34:18 +0000 (14:34 +0200)]
glx: indent -br -i3 -npcs --no-tabs render2.c

16 years agoglx: indent -br -i3 -npcs --no-tabs pixelstore.c
RALOVICH, Kristóf [Mon, 13 Oct 2008 12:33:28 +0000 (14:33 +0200)]
glx: indent -br -i3 -npcs --no-tabs pixelstore.c

16 years agoglx: indent -br -i3 -npcs --no-tabs pixel.c
RALOVICH, Kristóf [Mon, 13 Oct 2008 12:32:52 +0000 (14:32 +0200)]
glx: indent -br -i3 -npcs --no-tabs pixel.c

16 years agoglx: indent -br -i3 -npcs --no-tabs packsingle.h
RALOVICH, Kristóf [Mon, 13 Oct 2008 12:31:49 +0000 (14:31 +0200)]
glx: indent -br -i3 -npcs --no-tabs packsingle.h

16 years agoglx: indent -br -i3 -npcs --no-tabs packrender.h
RALOVICH, Kristóf [Mon, 13 Oct 2008 12:29:23 +0000 (14:29 +0200)]
glx: indent -br -i3 -npcs --no-tabs packrender.h

16 years agoglx: indent -br -i3 -npcs --no-tabs indirect_window_pos.c
RALOVICH, Kristóf [Mon, 13 Oct 2008 12:27:46 +0000 (14:27 +0200)]
glx: indent -br -i3 -npcs --no-tabs indirect_window_pos.c

16 years agoglx: indent -br -i3 -npcs --no-tabs indirect_vertex_program.c
RALOVICH, Kristóf [Mon, 13 Oct 2008 12:27:07 +0000 (14:27 +0200)]
glx: indent -br -i3 -npcs --no-tabs indirect_vertex_program.c

16 years agoglx: indent -br -i3 -npcs --no-tabs indirect_vertex_array_priv.h
RALOVICH, Kristóf [Mon, 13 Oct 2008 12:25:55 +0000 (14:25 +0200)]
glx: indent -br -i3 -npcs --no-tabs indirect_vertex_array_priv.h

16 years agoglx: indent -br -i3 -npcs --no-tabs indirect_vertex_array.h
RALOVICH, Kristóf [Mon, 13 Oct 2008 12:21:17 +0000 (14:21 +0200)]
glx: indent -br -i3 -npcs --no-tabs indirect_vertex_array.h

16 years agoglx: indent -br -i3 -npcs --no-tabs indirect_vertex_array.c
RALOVICH, Kristóf [Mon, 13 Oct 2008 12:20:15 +0000 (14:20 +0200)]
glx: indent -br -i3 -npcs --no-tabs indirect_vertex_array.c

16 years agoglx: indent -br -i3 -npcs --no-tabs indirect_transpose_matrix.c
RALOVICH, Kristóf [Mon, 13 Oct 2008 12:19:24 +0000 (14:19 +0200)]
glx: indent -br -i3 -npcs --no-tabs indirect_transpose_matrix.c

16 years agoglx: indent -br -i3 -npcs --no-tabs indirect_texture_compression.c
RALOVICH, Kristóf [Mon, 13 Oct 2008 12:18:18 +0000 (14:18 +0200)]
glx: indent -br -i3 -npcs --no-tabs indirect_texture_compression.c

16 years agoglx: indent -br -i3 -npcs --no-tabs glx_query.c
RALOVICH, Kristóf [Mon, 13 Oct 2008 12:12:40 +0000 (14:12 +0200)]
glx: indent -br -i3 -npcs --no-tabs glx_query.c

16 years agoglx: indent -br -i3 -npcs --no-tabs glx_pbuffer.c
RALOVICH, Kristóf [Mon, 13 Oct 2008 12:12:02 +0000 (14:12 +0200)]
glx: indent -br -i3 -npcs --no-tabs glx_pbuffer.c

16 years agoglx: indent -br -i3 -npcs --no-tabs glxhash.c
RALOVICH, Kristóf [Mon, 13 Oct 2008 12:10:16 +0000 (14:10 +0200)]
glx: indent -br -i3 -npcs --no-tabs glxhash.c

16 years agoglx: indent -br -i3 -npcs --no-tabs glxhash.h
RALOVICH, Kristóf [Mon, 13 Oct 2008 12:10:06 +0000 (14:10 +0200)]
glx: indent -br -i3 -npcs --no-tabs glxhash.h

16 years agoglx: indent -br -i3 -npcs --no-tabs glxext.c
RALOVICH, Kristóf [Mon, 13 Oct 2008 12:08:45 +0000 (14:08 +0200)]
glx: indent -br -i3 -npcs --no-tabs glxext.c

16 years agoglx: indent -br -i3 -npcs --no-tabs glxcurrent.c
RALOVICH, Kristóf [Mon, 13 Oct 2008 12:07:07 +0000 (14:07 +0200)]
glx: indent -br -i3 -npcs --no-tabs glxcurrent.c

16 years agoglx: indent -br -i3 -npcs --no-tabs glxcmds.c
RALOVICH, Kristóf [Mon, 13 Oct 2008 12:06:30 +0000 (14:06 +0200)]
glx: indent -br -i3 -npcs --no-tabs glxcmds.c

16 years agoglx: indent -br -i3 -npcs --no-tabs glcontextmodes.c
RALOVICH, Kristóf [Mon, 13 Oct 2008 11:49:49 +0000 (13:49 +0200)]
glx: indent -br -i3 -npcs --no-tabs glcontextmodes.c

16 years agoglx: indent -br -i3 -npcs --no-tabs eval.c
RALOVICH, Kristóf [Mon, 13 Oct 2008 11:48:07 +0000 (13:48 +0200)]
glx: indent -br -i3 -npcs --no-tabs eval.c

16 years agoglx: indent -br -i3 -npcs --no-tabs drisw_glx.c
RALOVICH, Kristóf [Mon, 13 Oct 2008 11:47:37 +0000 (13:47 +0200)]
glx: indent -br -i3 -npcs --no-tabs drisw_glx.c

16 years agoglx: indent -br -i3 -npcs --no-tabs dri_glx.c
RALOVICH, Kristóf [Mon, 13 Oct 2008 11:40:09 +0000 (13:40 +0200)]
glx: indent -br -i3 -npcs --no-tabs dri_glx.c

16 years agoglx: indent -br -i3 -npcs --no-tabs dri_common.h
RALOVICH, Kristóf [Mon, 13 Oct 2008 11:26:09 +0000 (13:26 +0200)]
glx: indent -br -i3 -npcs --no-tabs dri_common.h

16 years agoglx: indent -br -i3 -npcs --no-tabs dri_common.c
RALOVICH, Kristóf [Mon, 13 Oct 2008 11:25:28 +0000 (13:25 +0200)]
glx: indent -br -i3 -npcs --no-tabs dri_common.c

16 years agoglx: indent -br -i3 -npcs --no-tabs dri2.h
RALOVICH, Kristóf [Mon, 13 Oct 2008 11:18:41 +0000 (13:18 +0200)]
glx: indent -br -i3 -npcs --no-tabs dri2.h

16 years agoglx: indent -br -i3 -npcs --no-tabs dri2_glx.c
RALOVICH, Kristóf [Mon, 13 Oct 2008 11:17:32 +0000 (13:17 +0200)]
glx: indent -br -i3 -npcs --no-tabs dri2_glx.c

16 years agoglx: indent -br -i3 -npcs --no-tabs dri2.c
RALOVICH, Kristóf [Mon, 13 Oct 2008 11:16:28 +0000 (13:16 +0200)]
glx: indent -br -i3 -npcs --no-tabs dri2.c

16 years agoglx: indent -br -i3 -npcs --no-tabs compsize.c
RALOVICH, Kristóf [Mon, 13 Oct 2008 11:12:37 +0000 (13:12 +0200)]
glx: indent -br -i3 -npcs --no-tabs compsize.c

16 years agoglx: indent -br -i3 -npcs --no-tabs clientattrib.c
RALOVICH, Kristóf [Mon, 13 Oct 2008 11:11:30 +0000 (13:11 +0200)]
glx: indent -br -i3 -npcs --no-tabs clientattrib.c

16 years agoglx: add a line of Emacs helping variables
RALOVICH, Kristóf [Sat, 11 Oct 2008 12:27:07 +0000 (14:27 +0200)]
glx: add a line of Emacs helping variables

16 years agoglx: No need to zero a local variable.
RALOVICH, Kristóf [Sat, 11 Oct 2008 11:09:50 +0000 (13:09 +0200)]
glx: No need to zero a local variable.

My previous commit e2060348630b59a446bac7f734fdde40033093ab introduced this.

16 years agoglx: make INIT_MESA_SPARC more robust
RALOVICH, Kristóf [Sat, 11 Oct 2008 10:56:32 +0000 (12:56 +0200)]
glx: make INIT_MESA_SPARC more robust

Embed the macro body into do { ... } while(0) .

16 years agoi915: Texture instructions use r/t/oC/oD register as texture coordinate.
Xiang, Haihao [Mon, 13 Oct 2008 05:04:04 +0000 (13:04 +0800)]
i915: Texture instructions use r/t/oC/oD register as texture coordinate.

Fix http://bugs.freedesktop.org/show_bug.cgi?id=16287.

16 years agointel: Add acceleration for glDrawPixels(GL_STENCIL_INDEX).
Eric Anholt [Fri, 26 Sep 2008 02:11:03 +0000 (19:11 -0700)]
intel: Add acceleration for glDrawPixels(GL_STENCIL_INDEX).

This is nasty because there's no way in GL to output data to the stencil
buffer directly, so we have to do a dance to wrap the depth/stencil buffer
in an ARGB renderbuffer.

Improves performance of several oglconform testcases by better than a factor
of 2.

16 years agocell: initial bits for 3D texture support
Brian Paul [Tue, 14 Oct 2008 23:22:40 +0000 (17:22 -0600)]
cell: initial bits for 3D texture support

16 years agocell: replace FREE() with align_free()
Brian Paul [Tue, 14 Oct 2008 23:22:06 +0000 (17:22 -0600)]
cell: replace FREE() with align_free()

16 years agocell: fix incorrect parameter type
Brian Paul [Tue, 14 Oct 2008 23:19:57 +0000 (17:19 -0600)]
cell: fix incorrect parameter type

16 years agocell: support for cubemaps
Brian Paul [Tue, 14 Oct 2008 23:11:29 +0000 (17:11 -0600)]
cell: support for cubemaps

Though, progs/demos/cubemap.c doesn't quite work right...

16 years agocell: fall-through case for TGSI_OPCODE_TXB
Brian Paul [Tue, 14 Oct 2008 23:09:56 +0000 (17:09 -0600)]
cell: fall-through case for TGSI_OPCODE_TXB

16 years agocell: support NPOT textures, clamp/repeat mode, normalized/unorm texcoords
Brian Paul [Tue, 14 Oct 2008 21:19:01 +0000 (15:19 -0600)]
cell: support NPOT textures, clamp/repeat mode, normalized/unorm texcoords

glDrawPixels works now.

16 years agocell: fix npot texture tiling bugs
Brian Paul [Tue, 14 Oct 2008 20:02:07 +0000 (14:02 -0600)]
cell: fix npot texture tiling bugs

16 years agocell: fix broken negative texcoord conversion
Brian Paul [Tue, 14 Oct 2008 18:52:16 +0000 (12:52 -0600)]
cell: fix broken negative texcoord conversion

16 years agocell: use minify vs magnify filters
Brian Paul [Tue, 14 Oct 2008 18:42:21 +0000 (12:42 -0600)]
cell: use minify vs magnify filters

16 years agocell: fix assertions
Brian Paul [Tue, 14 Oct 2008 18:41:46 +0000 (12:41 -0600)]
cell: fix assertions

16 years agocell: basic mipmap filtering works now
Brian Paul [Tue, 14 Oct 2008 18:11:52 +0000 (12:11 -0600)]
cell: basic mipmap filtering works now

Though, only GL_MIPMAP_NEAREST / GL_LINEAR works right now.

16 years agocell: fix tex image stride bugs
Brian Paul [Tue, 14 Oct 2008 18:10:27 +0000 (12:10 -0600)]
cell: fix tex image stride bugs

16 years agocell: now do texture twiddling in the right way, at the right time.
Brian Paul [Tue, 14 Oct 2008 16:55:38 +0000 (10:55 -0600)]
cell: now do texture twiddling in the right way, at the right time.

Also handles images smaller than 32x32 now.

16 years agocell: remove old code, clean-ups, etc.
Brian Paul [Tue, 14 Oct 2008 16:05:23 +0000 (10:05 -0600)]
cell: remove old code, clean-ups, etc.

16 years agotrivial: more vp tests
Keith Whitwell [Tue, 14 Oct 2008 12:56:12 +0000 (13:56 +0100)]
trivial: more vp tests

16 years agovp: add simple vertex transform test
Keith Whitwell [Tue, 14 Oct 2008 12:52:38 +0000 (13:52 +0100)]
vp: add simple vertex transform test

16 years agomesa: modify fixed function vertex programs not to reference constant attributes
Keith Whitwell [Tue, 14 Oct 2008 13:15:26 +0000 (14:15 +0100)]
mesa: modify fixed function vertex programs not to reference constant attributes

16 years agodri: don't check the number of cliprects before swap, let
Alan Hourihane [Tue, 14 Oct 2008 10:54:20 +0000 (11:54 +0100)]
dri: don't check the number of cliprects before swap, let
     the swap handle the requirements.

16 years agocell: more clean-up in spu_tri.c
Brian Paul [Tue, 14 Oct 2008 02:19:51 +0000 (20:19 -0600)]
cell: more clean-up in spu_tri.c

16 years agocell: remove dead code, clean-up, reformatting
Brian Paul [Tue, 14 Oct 2008 01:50:20 +0000 (19:50 -0600)]
cell: remove dead code, clean-up, reformatting

16 years agocell: finish-up perspective-corrected interpolation
Brian Paul [Tue, 14 Oct 2008 01:41:26 +0000 (19:41 -0600)]
cell: finish-up perspective-corrected interpolation

16 years agocell: initial work for mipmap texture filtering
Brian Paul [Mon, 13 Oct 2008 22:43:11 +0000 (16:43 -0600)]
cell: initial work for mipmap texture filtering

16 years agocell: remove old texture-related fields
Brian Paul [Mon, 13 Oct 2008 21:17:01 +0000 (15:17 -0600)]
cell: remove old texture-related fields

16 years agocell: use fewer memory references in sample_texture4_bilinear_2()
Brian Paul [Mon, 13 Oct 2008 20:31:11 +0000 (14:31 -0600)]
cell: use fewer memory references in sample_texture4_bilinear_2()

16 years agocell: remove more old texture code
Brian Paul [Mon, 13 Oct 2008 20:10:36 +0000 (14:10 -0600)]
cell: remove more old texture code

16 years agocell: bilinear texture filtering using integer arithmetic
Brian Paul [Mon, 13 Oct 2008 20:09:54 +0000 (14:09 -0600)]
cell: bilinear texture filtering using integer arithmetic

Fewer float/int conversions involved.

16 years agocell: remove old texture code
Brian Paul [Mon, 13 Oct 2008 17:16:04 +0000 (11:16 -0600)]
cell: remove old texture code

16 years agocell: do texture sampling/filtering for four pixels at a time.
Brian Paul [Mon, 13 Oct 2008 16:55:08 +0000 (10:55 -0600)]
cell: do texture sampling/filtering for four pixels at a time.

16 years agocell: added spu_unpack_A8R8G8B8_transpose4()
Brian Paul [Mon, 13 Oct 2008 16:54:11 +0000 (10:54 -0600)]
cell: added spu_unpack_A8R8G8B8_transpose4()

Plus, clearer shuffle masks in other funcs.

16 years agomesa: when emitting an address load instruction, for
Alan Hourihane [Mon, 13 Oct 2008 11:30:40 +0000 (12:30 +0100)]
mesa: when emitting an address load instruction, for
      indexed elements ensure we write to a single register.

16 years agocell: more instruction scheduling optimizations (MIN/MAX/LERP/etc)
Brian Paul [Fri, 10 Oct 2008 23:48:16 +0000 (17:48 -0600)]
cell: more instruction scheduling optimizations (MIN/MAX/LERP/etc)

Also, optimize register->memory stores.