mesa.git
14 years agonvfx: Fix typo.
José Fonseca [Tue, 20 Apr 2010 11:26:36 +0000 (13:26 +0200)]
nvfx: Fix typo.

14 years agodraw: Remove draw_vs_llvm.c.
José Fonseca [Tue, 20 Apr 2010 11:26:24 +0000 (13:26 +0200)]
draw: Remove draw_vs_llvm.c.

To silence some warnings.

Super-seeded by Zack's new llvm middle end.

14 years agollvmpipe: silence warning
Alan Hourihane [Tue, 20 Apr 2010 09:33:56 +0000 (10:33 +0100)]
llvmpipe: silence warning

14 years agoMerge branch 'gallium-index-bias'
José Fonseca [Tue, 20 Apr 2010 09:07:08 +0000 (11:07 +0200)]
Merge branch 'gallium-index-bias'

14 years agodraw: No need to rebase for elt_bias.
José Fonseca [Tue, 20 Apr 2010 09:06:05 +0000 (11:06 +0200)]
draw: No need to rebase for elt_bias.

As we are rebasing to min_index + elt_bias, and the vertex buffer has no
elt_bias.

I still don't know how to exercise this code. I hope this is now right.

14 years agodraw: Fix cache elt_bias implementation.
José Fonseca [Tue, 20 Apr 2010 08:32:06 +0000 (10:32 +0200)]
draw: Fix cache elt_bias implementation.

14 years agogallium/docs: Make it clear that minIndex, maxIndex is exclusively a index buffer...
José Fonseca [Tue, 20 Apr 2010 08:22:28 +0000 (10:22 +0200)]
gallium/docs: Make it clear that minIndex, maxIndex is exclusively a index buffer characteristic.

Unlike the indexBias which is specific to a draw call.

This are the semantics of both D3D and GL ARB_draw_elements_base_vertex
extension.

14 years agodraw: Fix typo resulting from bad regular expression in index bias addition.
José Fonseca [Tue, 20 Apr 2010 08:19:42 +0000 (10:19 +0200)]
draw: Fix typo resulting from bad regular expression in index bias addition.

14 years agodraw llvm: Move dereference of pointer after NULL check.
Vinson Lee [Tue, 20 Apr 2010 07:00:52 +0000 (00:00 -0700)]
draw llvm: Move dereference of pointer after NULL check.

14 years agodraw llvm: Remove unnecessary header.
Vinson Lee [Tue, 20 Apr 2010 06:58:23 +0000 (23:58 -0700)]
draw llvm: Remove unnecessary header.

14 years agoegl: Fix demos to build with user specified Xlib
Dan Nicholson [Tue, 20 Apr 2010 03:25:17 +0000 (20:25 -0700)]
egl: Fix demos to build with user specified Xlib

Commit 88be2171e7 fixed the egl demos on the stable branch, but now
they're spread out across multiple subdirectories.

Signed-off-by: Dan Nicholson <dbn.lists@gmail.com>
14 years agoMerge branch '7.8'
Dan Nicholson [Tue, 20 Apr 2010 03:22:48 +0000 (20:22 -0700)]
Merge branch '7.8'

Conflicts:
progs/egl/Makefile

progs/egl/Makefile is gone on master with the egl demos split into
subdirectories. Will require an additional commit.

14 years agoegl: Pass flags to locate Xlib headers and libraries
Dan Nicholson [Sun, 18 Apr 2010 16:33:03 +0000 (09:33 -0700)]
egl: Pass flags to locate Xlib headers and libraries

eglplatform.h pulls in Xlib.h on X11 platforms. Likewise, the egl glx
driver and egl programs needs to link to libX11. Make sure we use the
locations the user told us about.

Signed-off-by: Dan Nicholson <dbn.lists@gmail.com>
14 years agoprogs: Fix linking of Xlib demos for non-autoconf builds
Dan Nicholson [Thu, 1 Apr 2010 21:59:10 +0000 (14:59 -0700)]
progs: Fix linking of Xlib demos for non-autoconf builds

The Xlib demos were fixed to use $(X11_LIBS) so that configure could
detect the proper directory to link the library from, but this broke
the non-autoconf builds. Give X11_LIBS a default value to fallback on.
(cherry picked from commit e40fce13e152ecf929c899ed38a8e5f7d198c738)

14 years agoChange libX11 variables to not conflict with AC_PATH_XTRA
Dan Nicholson [Tue, 16 Mar 2010 03:53:56 +0000 (20:53 -0700)]
Change libX11 variables to not conflict with AC_PATH_XTRA

The variable X_LIBS from AC_PATH_XTRA contains only the -L searchdir
parameter and not the -lX11 to link to Xlib. Use X11 prefixed build vars
for linking with Xlib to avoid the conflict.

Signed-off-by: Dan Nicholson <dbn.lists@gmail.com>
(cherry picked from commit e725ef171b5a4d5425461f237d9ccab223806913)

14 years agogallium: Respect user's CFLAGS for including X headers
Dan Nicholson [Fri, 2 Apr 2010 13:33:48 +0000 (06:33 -0700)]
gallium: Respect user's CFLAGS for including X headers

This can break on systems that don't have a system X installation.

Signed-off-by: Dan Nicholson <dbn.lists@gmail.com>
(cherry picked from commit de4ee20578a79e024b0de83c40648112f42c994e)

Conflicts:

src/gallium/winsys/xlib/Makefile

14 years agoUse X_LIBS from pkg-config, instead of libdir, for locating libX11
Jeff Smith [Sat, 13 Mar 2010 00:55:09 +0000 (18:55 -0600)]
Use X_LIBS from pkg-config, instead of libdir, for locating libX11

Signed-off-by: Jeff Smith <whydoubt@yahoo.com>
Signed-off-by: Dan Nicholson <dbn.lists@gmail.com>
(cherry picked from commit 8d86d395dcf6a5f192b6987485bb7aef49f1fefc)

14 years agoglapi: GL 3.x xml file
Brian Paul [Tue, 20 Apr 2010 02:42:33 +0000 (20:42 -0600)]
glapi: GL 3.x xml file

Some of the entrypoints defined in other .xml files will need to
be removed in favor of these...

14 years agollvmpipe: remove dead code
Brian Paul [Mon, 19 Apr 2010 23:16:15 +0000 (17:16 -0600)]
llvmpipe: remove dead code

14 years agollvmpipe: use llvmpipe_resource_stride()
Brian Paul [Mon, 19 Apr 2010 23:15:25 +0000 (17:15 -0600)]
llvmpipe: use llvmpipe_resource_stride()

14 years agogallivm: pass 3D texture stride as an array
Brian Paul [Mon, 19 Apr 2010 23:14:55 +0000 (17:14 -0600)]
gallivm: pass 3D texture stride as an array

This should have been included with the previous commit.

14 years agollvmpipe: get 3D texture image stride from an array rather than computing it
Brian Paul [Mon, 19 Apr 2010 23:05:05 +0000 (17:05 -0600)]
llvmpipe: get 3D texture image stride from an array rather than computing it

This fixes broken 3D texture indexing when the height of the 3D texture
was less than 64 (the tile size).  It's simpler to pass this as an array
(as we do with the row stride) than to compute it on the fly.

14 years agollvmpipe: consolidate some code in llvmpipe_set_texture_image_layout()
Brian Paul [Mon, 19 Apr 2010 22:49:37 +0000 (16:49 -0600)]
llvmpipe: consolidate some code in llvmpipe_set_texture_image_layout()

14 years agollvmpipe: fix rendering to 3D textures
Brian Paul [Mon, 19 Apr 2010 22:42:47 +0000 (16:42 -0600)]
llvmpipe: fix rendering to 3D textures

Treat cube faces and 3D texture slices in the same manner (they're layed
out out continuously in memory).  Additional clean-ups and improvements
coming.

14 years agollvmpipe: checkpoint: fixes for render to 3D texture
Brian Paul [Mon, 19 Apr 2010 20:43:22 +0000 (14:43 -0600)]
llvmpipe: checkpoint: fixes for render to 3D texture

14 years agollvmpipe: another fix for surface memory allocation
Brian Paul [Mon, 19 Apr 2010 20:07:23 +0000 (14:07 -0600)]
llvmpipe: another fix for surface memory allocation

The previous patch broke cube maps.
The logic is a bit clearer now.

14 years agor300g: add is_rv350 flag
Marek Olšák [Mon, 19 Apr 2010 22:50:39 +0000 (00:50 +0200)]
r300g: add is_rv350 flag

14 years agoMerge branch '7.8'
Jesse Barnes [Mon, 19 Apr 2010 21:20:58 +0000 (14:20 -0700)]
Merge branch '7.8'

14 years agoDRI2: check for swapAvailable before using swap interval protocol
Jesse Barnes [Mon, 19 Apr 2010 21:19:48 +0000 (14:19 -0700)]
DRI2: check for swapAvailable before using swap interval protocol

This should have been part of the last change...

14 years agodraw llvm: make sure use_llvm isn't used when not defined
Zack Rusin [Mon, 19 Apr 2010 17:33:49 +0000 (13:33 -0400)]
draw llvm: make sure use_llvm isn't used when not defined

14 years agodraw llvm: fix typo (boolean, not bool)
Zack Rusin [Mon, 19 Apr 2010 17:30:16 +0000 (13:30 -0400)]
draw llvm: fix typo (boolean, not bool)

14 years agollvmpipe: fix surface memory allocation bug
Brian Paul [Mon, 19 Apr 2010 17:17:11 +0000 (11:17 -0600)]
llvmpipe: fix surface memory allocation bug

We weren't always allocating the right amount of memory for image tiles
for some formats (those < 32bpp).

Fixes fd.o bug 27712.

14 years agoMerge branch '7.8'
Jesse Barnes [Mon, 19 Apr 2010 16:56:49 +0000 (09:56 -0700)]
Merge branch '7.8'

14 years agoDRI2: synchronize swap interval with server at startup time
Jesse Barnes [Mon, 19 Apr 2010 16:54:08 +0000 (09:54 -0700)]
DRI2: synchronize swap interval with server at startup time

In the direct rendered case, we need to tell the server our initial swap
interval.  If we don't, the local and server values will be out of sync,
since the server and client defaults may be different (as they were
before this patch).

14 years agodraw llvm: allow runtime switching of pipelines (yes/no to llvm)
Zack Rusin [Mon, 19 Apr 2010 16:52:25 +0000 (12:52 -0400)]
draw llvm: allow runtime switching of pipelines (yes/no to llvm)

use DRAW_USE_LLVM to disable or enable (default) llvm

14 years agodraw llvm: fix constructor mess
Zack Rusin [Mon, 19 Apr 2010 16:46:08 +0000 (12:46 -0400)]
draw llvm: fix constructor mess

use just one constructor to figure out whether to use llvm.

14 years agollvmpipe: enable draw llvm by default
Zack Rusin [Fri, 9 Apr 2010 23:17:04 +0000 (19:17 -0400)]
llvmpipe: enable draw llvm by default

14 years agogallium/util: specify binding type for blit src texture
Brian Paul [Mon, 19 Apr 2010 16:32:23 +0000 (10:32 -0600)]
gallium/util: specify binding type for blit src texture

Fixes fd.o bug 27711.

14 years agomesa: unmap the immediate mode VB before destroying it
Brian Paul [Mon, 19 Apr 2010 16:27:55 +0000 (10:27 -0600)]
mesa: unmap the immediate mode VB before destroying it

Fixes failed assertion from fd.o bug 27713.

The assertion was added with the new resource/transfer changes.
This patch could apply to the 7.8 branch but it's not essential.

14 years agor300g: Adapt for index bias interface change.
José Fonseca [Mon, 19 Apr 2010 16:18:45 +0000 (18:18 +0200)]
r300g: Adapt for index bias interface change.

14 years agonvfx: Adapt for index bias interface change.
José Fonseca [Mon, 19 Apr 2010 16:18:28 +0000 (18:18 +0200)]
nvfx: Adapt for index bias interface change.

14 years agonv50: Adapt for index bias interface change.
José Fonseca [Mon, 19 Apr 2010 16:17:45 +0000 (18:17 +0200)]
nv50: Adapt for index bias interface change.

14 years agoretrace: Support index bias.
José Fonseca [Mon, 19 Apr 2010 16:17:11 +0000 (18:17 +0200)]
retrace: Support index bias.

14 years agomesa/st: Update for index bias interface change.
José Fonseca [Mon, 19 Apr 2010 16:16:57 +0000 (18:16 +0200)]
mesa/st: Update for index bias interface change.

14 years agost/python: Use index bias.
José Fonseca [Mon, 19 Apr 2010 16:16:34 +0000 (18:16 +0200)]
st/python: Use index bias.

14 years agotrace: Implement index bias.
José Fonseca [Mon, 19 Apr 2010 16:16:20 +0000 (18:16 +0200)]
trace: Implement index bias.

14 years agosvga: Implement index bias.
José Fonseca [Mon, 19 Apr 2010 16:16:08 +0000 (18:16 +0200)]
svga: Implement index bias.

Untested.

14 years agosoftpipe: Implement index bias.
José Fonseca [Mon, 19 Apr 2010 16:15:39 +0000 (18:15 +0200)]
softpipe: Implement index bias.

14 years agollvmpipe: Implement index bias.
José Fonseca [Mon, 19 Apr 2010 16:15:11 +0000 (18:15 +0200)]
llvmpipe: Implement index bias.

14 years agoidentity: Implement index bias.
José Fonseca [Mon, 19 Apr 2010 16:15:05 +0000 (18:15 +0200)]
identity: Implement index bias.

14 years agoi965g: Implement index bias.
José Fonseca [Mon, 19 Apr 2010 16:14:58 +0000 (18:14 +0200)]
i965g: Implement index bias.

14 years agoi915: Implement index bias.
José Fonseca [Mon, 19 Apr 2010 16:14:48 +0000 (18:14 +0200)]
i915: Implement index bias.

14 years agofailover: Implement index bias.
José Fonseca [Mon, 19 Apr 2010 16:14:35 +0000 (18:14 +0200)]
failover: Implement index bias.

14 years agocell: Implement index bias.
José Fonseca [Mon, 19 Apr 2010 16:14:23 +0000 (18:14 +0200)]
cell: Implement index bias.

14 years agodraw: Implement index bias.
José Fonseca [Mon, 19 Apr 2010 16:14:04 +0000 (18:14 +0200)]
draw: Implement index bias.

14 years agost/mesa: invert scissor rect depending on FB orientation
Brian Paul [Mon, 19 Apr 2010 16:10:41 +0000 (10:10 -0600)]
st/mesa: invert scissor rect depending on FB orientation

Fixes fd.o bug 27715

14 years agomesa: Fix build with gcc 3.3.
Matthieu Herrb [Mon, 19 Apr 2010 15:32:37 +0000 (09:32 -0600)]
mesa: Fix build with gcc 3.3.

Signed-off-by: Brian Paul <brianp@vmware.com>
14 years agoradeon: Let this build with gcc 3.3
Matthieu Herrb [Sun, 18 Apr 2010 23:55:38 +0000 (16:55 -0700)]
radeon: Let this build with gcc 3.3

Declaring the loop index inside for () is not supported by this version.

Signed-off-by: Brian Paul <brianp@vmware.com>
14 years agoradeon: Fix command type for DRM_RADEON_IRQ_EMIT ioctl.
Owain Ainsworth [Sun, 18 Apr 2010 23:55:37 +0000 (16:55 -0700)]
radeon: Fix command type for DRM_RADEON_IRQ_EMIT ioctl.

This should be drmCommandWriteRead to avoid an EINVAL error on systems
that strictly check ioctl args. This command has been r/w for ever.
Discussion with airlied agreed that this was the correct course.

Signed-off-by: Brian Paul <brianp@vmware.com>
14 years agomesa: Use __OpenBSD__ to check for OpenBSD.
Matthieu Herrb [Sun, 18 Apr 2010 23:55:36 +0000 (16:55 -0700)]
mesa: Use __OpenBSD__ to check for OpenBSD.

Signed-off-by: Brian Paul <brianp@vmware.com>
14 years agollvmpipe: triangle function comments
Brian Paul [Sat, 17 Apr 2010 18:48:26 +0000 (12:48 -0600)]
llvmpipe: triangle function comments

14 years agogallium/draw: use a local var to simplify some code
Brian Paul [Fri, 16 Apr 2010 23:05:44 +0000 (17:05 -0600)]
gallium/draw: use a local var to simplify some code

14 years agosoftpipe: add option to do polygon stipple in softpipe vs. draw module
Brian Paul [Sat, 17 Apr 2010 17:53:35 +0000 (11:53 -0600)]
softpipe: add option to do polygon stipple in softpipe vs. draw module

For debugging purposes.

14 years agoMerge branch '7.8'
Brian Paul [Mon, 19 Apr 2010 14:45:20 +0000 (08:45 -0600)]
Merge branch '7.8'

Conflicts:

src/gallium/auxiliary/draw/draw_context.c
src/gallium/auxiliary/draw/draw_pipe_aaline.c
src/gallium/drivers/llvmpipe/lp_context.c

14 years agogallium/draw: use correct rasterization state for wide/AA points/lines
Brian Paul [Mon, 19 Apr 2010 14:35:53 +0000 (08:35 -0600)]
gallium/draw: use correct rasterization state for wide/AA points/lines

When points or lines are decomposed into triangles, we need to be sure
to disable polygon culling, stippling, "un-filled" modes, etc.

This patch sets the rasterization state to disable those things prior to
drawing points/lines with triangles, then restores the previous state
afterward.

The new piglit point-no-line-cull test checks this problem & solution.

14 years agodocs: Document indexBias.
José Fonseca [Mon, 19 Apr 2010 13:08:14 +0000 (15:08 +0200)]
docs: Document indexBias.

14 years agor300c/r300g: add 3155 rv380 pci id
Dave Airlie [Mon, 19 Apr 2010 09:22:03 +0000 (19:22 +1000)]
r300c/r300g: add 3155 rv380 pci id

14 years agogallivm: Remove redundant initialization of dst_vec_type.
Vinson Lee [Mon, 19 Apr 2010 07:35:02 +0000 (00:35 -0700)]
gallivm: Remove redundant initialization of dst_vec_type.

dec_vec_type is already initialized to lp_build_vec_type(dst_type) at
its declaration.

14 years agonv50: Fix include recursion.
Vinson Lee [Mon, 19 Apr 2010 07:05:57 +0000 (00:05 -0700)]
nv50: Fix include recursion.

Don't include nv50_context.h and use a forward declaration instead.
nv50_context.h includes nv50_screen.h (itself).

14 years agogallium: Add index bias parameter to draw_elements and friends.
José Fonseca [Mon, 19 Apr 2010 06:56:46 +0000 (08:56 +0200)]
gallium: Add index bias parameter to draw_elements and friends.

indexBias corresponds to:
- BaseVertexIndex parameter of D3D9's
  IDirect3DDevice9::DrawIndexedPrimitive method
- BaseVertexLocation parameter of ID3D10Device::DrawIndexed

Although a positive indexBias can be easily be implemented in Gallium by
adding indexBias*stride to each vertex buffer base offset, a negative
indexBias cannot, as the final vertex buffer offset could be negative.

I'm not aware of this functionality being exposed to GL drivers, so for
now all hardware drivers will just assert(indexBias == 0).

See also:
- http://msdn.microsoft.com/en-us/library/bb174369.aspx (D3D9)
- http://msdn.microsoft.com/en-us/library/ff556126.aspx (D3D10 DDI)

14 years agonvfx: Fix include recursion.
Vinson Lee [Mon, 19 Apr 2010 06:44:24 +0000 (23:44 -0700)]
nvfx: Fix include recursion.

Don't include nvfx_context.h and use a forward reference instead.
nvfx_context.h includes nvfx_screen.h (itself).

14 years agoauxiliary: Move loop variable declaration outside for loop.
Vinson Lee [Mon, 19 Apr 2010 06:21:07 +0000 (23:21 -0700)]
auxiliary: Move loop variable declaration outside for loop.

Fixes MSVC build.

14 years agonvfx: Add missing header and forward declaration.
Vinson Lee [Mon, 19 Apr 2010 06:09:31 +0000 (23:09 -0700)]
nvfx: Add missing header and forward declaration.

14 years agonouveau: Add missing header.
Vinson Lee [Mon, 19 Apr 2010 06:00:45 +0000 (23:00 -0700)]
nouveau: Add missing header.

14 years agor300g: Remove unnecessary headers.
Vinson Lee [Mon, 19 Apr 2010 05:51:35 +0000 (22:51 -0700)]
r300g: Remove unnecessary headers.

14 years agoi915g: Remove unnecessary header.
Vinson Lee [Mon, 19 Apr 2010 05:49:55 +0000 (22:49 -0700)]
i915g: Remove unnecessary header.

14 years agoauxiliary: Initialize variable.
Vinson Lee [Mon, 19 Apr 2010 05:45:18 +0000 (22:45 -0700)]
auxiliary: Initialize variable.

14 years agoauxiliary: Add util/u_surfaces.c to SCons build.
Vinson Lee [Mon, 19 Apr 2010 05:38:53 +0000 (22:38 -0700)]
auxiliary: Add util/u_surfaces.c to SCons build.

This was missed in commit ac4b8db62d056fa5b85661f67ba5e1d1d29e3fcf.

14 years agost/mesa: s/st_get_stobj_texture/st_get_stobj_resource/
Brian Paul [Mon, 19 Apr 2010 00:01:04 +0000 (18:01 -0600)]
st/mesa: s/st_get_stobj_texture/st_get_stobj_resource/

14 years agost/mesa: s/st_get_texobj_texture/st_get_texobj_resource/
Brian Paul [Sun, 18 Apr 2010 23:58:44 +0000 (17:58 -0600)]
st/mesa: s/st_get_texobj_texture/st_get_texobj_resource/

14 years agost/mesa: remove st_texture_object::pipe field
Brian Paul [Sun, 18 Apr 2010 23:55:23 +0000 (17:55 -0600)]
st/mesa: remove st_texture_object::pipe field

Just pass the pipe context to st_get_texture_sampler_view()
as is done for st_get_renderbuffer_sampler_view().

14 years agost/mesa: s/st_renderbuffer_get_sampler_view/st_get_renderbuffer_sampler_view/
Brian Paul [Sun, 18 Apr 2010 23:44:25 +0000 (17:44 -0600)]
st/mesa: s/st_renderbuffer_get_sampler_view/st_get_renderbuffer_sampler_view/

14 years agost/mesa: s/st_sampler_view_from_texture/st_create_texture_sampler_view/
Brian Paul [Sun, 18 Apr 2010 23:38:49 +0000 (17:38 -0600)]
st/mesa: s/st_sampler_view_from_texture/st_create_texture_sampler_view/

14 years agost/mesa: s/st_get_stobj_sampler_view/st_get_texture_sampler_view/
Brian Paul [Sun, 18 Apr 2010 23:12:39 +0000 (17:12 -0600)]
st/mesa: s/st_get_stobj_sampler_view/st_get_texture_sampler_view/

14 years agor300g: implement TRUNC as floor
Marek Olšák [Sun, 18 Apr 2010 22:26:49 +0000 (00:26 +0200)]
r300g: implement TRUNC as floor

14 years agor300/compiler: lower CEIL
Marek Olšák [Sun, 18 Apr 2010 21:40:01 +0000 (23:40 +0200)]
r300/compiler: lower CEIL

14 years agor300/compiler: enable branch emulation for vertex shaders
Marek Olšák [Sun, 18 Apr 2010 17:45:51 +0000 (19:45 +0200)]
r300/compiler: enable branch emulation for vertex shaders

14 years agor300/compiler: optimize CMP for vertex shaders a bit
Marek Olšák [Sun, 18 Apr 2010 18:49:50 +0000 (20:49 +0200)]
r300/compiler: optimize CMP for vertex shaders a bit

14 years agor300/compiler: Use memory_pool_array_reserve in deadcode elimination
Nicolai Hähnle [Sun, 11 Oct 2009 12:24:52 +0000 (14:24 +0200)]
r300/compiler: Use memory_pool_array_reserve in deadcode elimination

Signed-off-by: Nicolai Hähnle <nhaehnle@gmail.com>
14 years agor300/compiler: Use memory_pool_array_reserve in r500-fragprog_emit
Nicolai Hähnle [Sun, 11 Oct 2009 12:22:16 +0000 (14:22 +0200)]
r300/compiler: Use memory_pool_array_reserve in r500-fragprog_emit

Signed-off-by: Nicolai Hähnle <nhaehnle@gmail.com>
14 years agor300/compiler: enable branch emulation for R500 fragment programs
Marek Olšák [Sun, 11 Oct 2009 12:18:11 +0000 (14:18 +0200)]
r300/compiler: enable branch emulation for R500 fragment programs

14 years agor300/compiler: Implement branch emulation for R300 fragment programs
Nicolai Hähnle [Sun, 11 Oct 2009 12:18:11 +0000 (14:18 +0200)]
r300/compiler: Implement branch emulation for R300 fragment programs

Signed-off-by: Nicolai Hähnle <nhaehnle@gmail.com>
14 years agou_inlines: split pipe_surface_init in pipe_surface_reset and *_init
Luca Barbieri [Sun, 18 Apr 2010 20:37:32 +0000 (22:37 +0200)]
u_inlines: split pipe_surface_init in pipe_surface_reset and *_init

14 years agotgsi: add comment about potential code removal
Brian Paul [Sun, 18 Apr 2010 16:01:53 +0000 (10:01 -0600)]
tgsi: add comment about potential code removal

14 years agosoftpipe: new comment and assertion for face value
Brian Paul [Sun, 18 Apr 2010 16:01:04 +0000 (10:01 -0600)]
softpipe: new comment and assertion for face value

14 years agotgsi: replace 0xf with TGSI_WRITEMASK_XYZW
Brian Paul [Sun, 18 Apr 2010 15:56:52 +0000 (09:56 -0600)]
tgsi: replace 0xf with TGSI_WRITEMASK_XYZW

14 years agosoftpipe: fix computation of fragment[FACE] attribute
Brian Paul [Sun, 18 Apr 2010 15:46:25 +0000 (09:46 -0600)]
softpipe: fix computation of fragment[FACE] attribute

In TGSI, front facing is +1 and back-facing is -1.  We were computing
this attribute as +1 and 0 before.  However, the value isn't actually
used anywhere because we machine->Face attribute overrides it in
tgsi_exec.c.  That could be changed, removing some special-case code...

14 years agosoftpipe: clean-up and comments
Brian Paul [Sun, 18 Apr 2010 15:00:17 +0000 (09:00 -0600)]
softpipe: clean-up and comments

14 years agosoftpipe: document MAX_QUADS
Brian Paul [Sun, 18 Apr 2010 14:51:16 +0000 (08:51 -0600)]
softpipe: document MAX_QUADS

14 years agor300g: more solid is_buffer_referenced implementation
Marek Olšák [Sun, 18 Apr 2010 15:19:45 +0000 (17:19 +0200)]
r300g: more solid is_buffer_referenced implementation

This fixes crash from 7a1b5c937fa32968a04a11649e456a1ef8c5b442,
and also removes the unused "map" pointer.