mesa.git
14 years agoglslcompiler: fix build breakage
Brian Paul [Mon, 22 Mar 2010 15:08:09 +0000 (09:08 -0600)]
glslcompiler: fix build breakage

14 years agoMerge branch '7.8'
Brian Paul [Mon, 22 Mar 2010 15:07:46 +0000 (09:07 -0600)]
Merge branch '7.8'

Conflicts:

src/gallium/drivers/cell/ppu/cell_screen.c
src/mesa/state_tracker/st_cb_drawpixels.c

14 years agoglslcompiler: fix build breakage
Brian Paul [Mon, 22 Mar 2010 15:00:13 +0000 (09:00 -0600)]
glslcompiler: fix build breakage

14 years agomesa: remove return, do as the comment says
Brian Paul [Mon, 22 Mar 2010 14:23:14 +0000 (08:23 -0600)]
mesa: remove return, do as the comment says

14 years agomesa: Add end of line to the end of a debug output.
Pauli Nieminen [Mon, 22 Mar 2010 13:14:16 +0000 (15:14 +0200)]
mesa: Add end of line to the end of a debug output.

14 years agodocs: Update the path to build libgl-xlib.
Chia-I Wu [Mon, 22 Mar 2010 05:30:54 +0000 (13:30 +0800)]
docs: Update the path to build libgl-xlib.

14 years agoprogs/tests: Add cva_huge to SCons build.
Vinson Lee [Mon, 22 Mar 2010 02:21:11 +0000 (19:21 -0700)]
progs/tests: Add cva_huge to SCons build.

14 years agoprogs/tests: Include stddef.h for ptrdiff_t on all platforms.
Vinson Lee [Mon, 22 Mar 2010 02:09:54 +0000 (19:09 -0700)]
progs/tests: Include stddef.h for ptrdiff_t on all platforms.

stddef.h is the standard C header that defines ptrdiff_t.

Fixes build of cva_huge on Mac OS X.

14 years agor200: Fix emit size prediction to account elt splitting.
Pauli Nieminen [Sun, 21 Mar 2010 21:23:21 +0000 (23:23 +0200)]
r200: Fix emit size prediction to account elt splitting.

Emit sizes prediction didn't account for render splitting in
hwtnl path.

14 years agor200: Don't flush when closing elts in KMS.
Pauli Nieminen [Sun, 21 Mar 2010 20:55:13 +0000 (22:55 +0200)]
r200: Don't flush when closing elts in KMS.

Flush in middle of rendering in KMS is not allowed because
buffers are discarded in flush.

Fixes crash when emiting split indices with RADEON_DEBUG=all.

14 years agor300g: disable tiling for YUV formats
Marek Olšák [Sun, 21 Mar 2010 21:17:14 +0000 (22:17 +0100)]
r300g: disable tiling for YUV formats

14 years agor300g: fix scons build
Marek Olšák [Sun, 21 Mar 2010 21:05:27 +0000 (22:05 +0100)]
r300g: fix scons build

14 years agor300g: accelerate blitting for all 64-bit texture formats
Marek Olšák [Sun, 21 Mar 2010 20:47:41 +0000 (21:47 +0100)]
r300g: accelerate blitting for all 64-bit texture formats

14 years agor300g: add and enable square microtiling
Marek Olšák [Sun, 14 Feb 2010 16:43:32 +0000 (17:43 +0100)]
r300g: add and enable square microtiling

It requires DRM 2.1.0 (e.g. kernel 2.6.34) and is disabled on older ones.

Finally, the texture tiling implementation is now complete. Uff.

14 years agor300g: cleanup tiling flags propagation
Marek Olšák [Sun, 21 Mar 2010 20:34:57 +0000 (21:34 +0100)]
r300g: cleanup tiling flags propagation

14 years agor300g: put common defines into one file
Marek Olšák [Sun, 21 Mar 2010 20:34:18 +0000 (21:34 +0100)]
r300g: put common defines into one file

14 years agor300g: remove unused code
Marek Olšák [Sun, 21 Mar 2010 20:22:21 +0000 (21:22 +0100)]
r300g: remove unused code

14 years agor200: Fix swtnl fallback to flush pending rendering before transition.
Pauli Nieminen [Sun, 21 Mar 2010 18:16:17 +0000 (20:16 +0200)]
r200: Fix swtnl fallback to flush pending rendering before transition.

Flush after transition would emit wrong state that could cause
wrong state emited for pending rendering operation.

Fixes wan once from extrement tuxracer that is using per vertex
materials.

14 years agor200: Fix mixed indetion in r200TclFallback.
Pauli Nieminen [Sun, 21 Mar 2010 18:02:10 +0000 (20:02 +0200)]
r200: Fix mixed indetion in r200TclFallback.

14 years agoRevert "drm/sw: does not need sw_winsys"
George Sapountzis [Sun, 21 Mar 2010 17:36:28 +0000 (19:36 +0200)]
Revert "drm/sw: does not need sw_winsys"

This reverts commit 97a694e2211dc804090f282d8e096c028f29579f.

14 years agoRevert "gallium: add soft screen helper"
George Sapountzis [Sun, 21 Mar 2010 17:33:17 +0000 (19:33 +0200)]
Revert "gallium: add soft screen helper"

This reverts commit f87a5f6499f51f651c2a9f2d4682875b22926905.

14 years agoRevert "drm/sw: just s/softpipe_create_screen/gallium_soft_create_screen/"
George Sapountzis [Sun, 21 Mar 2010 17:33:09 +0000 (19:33 +0200)]
Revert "drm/sw: just s/softpipe_create_screen/gallium_soft_create_screen/"

This reverts commit 5d524cce9c4fcc18ed977801d59ba7bb911020db.

14 years agoRevert "fix scons build"
George Sapountzis [Sun, 21 Mar 2010 17:32:40 +0000 (19:32 +0200)]
Revert "fix scons build"

This reverts commit 29ec05164838f13d9535271796a50fa213d07912.

14 years agofix scons build
George Sapountzis [Sun, 21 Mar 2010 17:20:15 +0000 (19:20 +0200)]
fix scons build

14 years agoMerge branch 'master' of git+ssh://git.freedesktop.org/git/mesa/mesa
George Sapountzis [Sun, 21 Mar 2010 13:37:40 +0000 (15:37 +0200)]
Merge branch 'master' of git+ssh://git.freedesktop.org/git/mesa/mesa

14 years agoRevert "Makefile.template: respect LIBRARY_DEFINES in mkdep"
George Sapountzis [Sun, 21 Mar 2010 13:32:50 +0000 (15:32 +0200)]
Revert "Makefile.template: respect LIBRARY_DEFINES in mkdep"

This reverts commit 9ec29e31919e85f9230867f43841c0e74be930d3.

14 years agonv50: report driver as GLSL capable
Christoph Bumiller [Sun, 21 Mar 2010 13:05:20 +0000 (14:05 +0100)]
nv50: report driver as GLSL capable

There's still no hint of optimization in the shaders, but
we support conditionals, loops and even integer opcodes so
it isn't that big a lie.

14 years agoMerge branch 'master' of git://anongit.freedesktop.org/git/mesa/mesa
George Sapountzis [Sun, 21 Mar 2010 13:05:21 +0000 (15:05 +0200)]
Merge branch 'master' of git://anongit.freedesktop.org/git/mesa/mesa

14 years agodrm/sw: just s/softpipe_create_screen/gallium_soft_create_screen/
George Sapountzis [Sun, 21 Mar 2010 13:01:36 +0000 (15:01 +0200)]
drm/sw: just s/softpipe_create_screen/gallium_soft_create_screen/

This partially reverts commit f87a5f6499f51f651c2a9f2d4682875b22926905.

14 years agonv50: don't validate arrays on clear
Christoph Bumiller [Sun, 21 Mar 2010 11:26:08 +0000 (12:26 +0100)]
nv50: don't validate arrays on clear

The vertex elements and buffers might not be valid anymore.

14 years agonv50: get rid of the static_init stateobj
Christoph Bumiller [Sun, 21 Mar 2010 12:17:02 +0000 (13:17 +0100)]
nv50: get rid of the static_init stateobj

Relocations of per-screen buffers are now emitted directly,
and include the necessary method to get changes in constbuf
addresses committed to the hw.

It should also be a bit cheaper than the way stateobjs emit
relocation markers, use a little less pushbuf space.

14 years agogallium: add soft screen helper
George Sapountzis [Fri, 19 Mar 2010 00:38:11 +0000 (02:38 +0200)]
gallium: add soft screen helper

14 years agodri1_api: need not include drm.h
George Sapountzis [Fri, 19 Mar 2010 00:38:11 +0000 (02:38 +0200)]
dri1_api: need not include drm.h

14 years agodrm/sw: does not need sw_winsys
George Sapountzis [Fri, 19 Mar 2010 00:38:11 +0000 (02:38 +0200)]
drm/sw: does not need sw_winsys

14 years agodrm/sw: llvmpipe texture_from_handle
George Sapountzis [Fri, 19 Mar 2010 00:38:11 +0000 (02:38 +0200)]
drm/sw: llvmpipe texture_from_handle

Not sure, but judging by softpipe, this hook was forgotten.

14 years agoMakefile.template: respect LIBRARY_DEFINES in mkdep
George Sapountzis [Fri, 19 Mar 2010 00:38:10 +0000 (02:38 +0200)]
Makefile.template: respect LIBRARY_DEFINES in mkdep

14 years agorename dri_sw to drisw_util for consistency
George Sapountzis [Fri, 19 Mar 2010 00:38:10 +0000 (02:38 +0200)]
rename dri_sw to drisw_util for consistency

14 years agodri_inteface: add define for checking presence of drm.h
George Sapountzis [Fri, 19 Mar 2010 00:38:09 +0000 (02:38 +0200)]
dri_inteface: add define for checking presence of drm.h

__NOT_HAVE_DRM_H is a like a feature, defined by default on specific platforms
and allows to be defined externally as well.

__NOT_HAVE_DRM_H should only be used by xserver and mesa swrast_dri drivers

14 years agoglx: minor cosmetic
George Sapountzis [Fri, 19 Mar 2010 23:51:00 +0000 (01:51 +0200)]
glx: minor cosmetic

14 years agoglx: swapBuffers prototype has changed
George Sapountzis [Fri, 19 Mar 2010 00:38:09 +0000 (02:38 +0200)]
glx: swapBuffers prototype has changed

14 years agovbo: Fix vbo_split_copy to pass correct max_index to draw.
Pauli Nieminen [Sun, 21 Mar 2010 10:42:10 +0000 (12:42 +0200)]
vbo: Fix vbo_split_copy to pass correct max_index to draw.

vbo_split_copy was passing one past the max_index to draw function
which caused _tnl_draw_prims function to read uninitialized values
from copied array.

Bug was spoted in valgrind report of progs/tests/cva_huge.

14 years agotests: Add test for huge client arrays that has to be split.
Pauli Nieminen [Sun, 21 Mar 2010 11:11:47 +0000 (13:11 +0200)]
tests: Add test for huge client arrays that has to be split.

When running this test case in valgrind report includes read of unitialized
value in _tnl_draw_prims. The bug doesn't cause any vissible errors.

Bug is caused by vbo_split_copy that is calling draw function with max_index
one past the end instead of the end.

14 years agodri/nouveau: Reemit the light model state when lighting goes on/off.
Francisco Jerez [Sun, 21 Mar 2010 10:49:46 +0000 (11:49 +0100)]
dri/nouveau: Reemit the light model state when lighting goes on/off.

14 years agodri/nouveau: Random cleanups.
Francisco Jerez [Sun, 21 Mar 2010 10:49:20 +0000 (11:49 +0100)]
dri/nouveau: Random cleanups.

14 years agor300g: fix occlusion query hangs.
Dave Airlie [Sun, 21 Mar 2010 09:36:15 +0000 (19:36 +1000)]
r300g: fix occlusion query hangs.

Okay need to revist the whole OQ stuff anyways, glean test asserts
which is never good.

I'm liking the cached bufmgr restrictions less and less, I think I'll
probably play with the fence and/or busy stuff ASAP and try and clean it up.

Signed-off-by: Dave Airlie <airlied@redhat.com>
14 years agor300g: add bufmgr cached for vertex/index buffers.
Dave Airlie [Sun, 21 Mar 2010 08:25:31 +0000 (18:25 +1000)]
r300g: add bufmgr cached for vertex/index buffers.

This adds the cached bufmgr for vertex/index buffers on top of the kernel
manager.

Signed-off-by: Dave Airlie <airlied@redhat.com>
14 years agogallium: cached bufmgr add map busy check
Dave Airlie [Sun, 21 Mar 2010 08:23:22 +0000 (18:23 +1000)]
gallium: cached bufmgr add map busy check

Suggested by Jose on the list, probably not perfect but will let me get
past this for now, testing with a fenced bufmgr on top of this, was slower,

Also this doesn't let you do the busy early exit optimisation either from
what I can see.

Signed-off-by: Dave Airlie <airlied@redhat.com>
14 years agoMerge remote branch 'origin/gallium-st-api-dri'
Chia-I Wu [Sun, 21 Mar 2010 08:32:34 +0000 (16:32 +0800)]
Merge remote branch 'origin/gallium-st-api-dri'

14 years agor300g: align misaligned ushort vertex indices
Marek Olšák [Sun, 21 Mar 2010 03:49:35 +0000 (04:49 +0100)]
r300g: align misaligned ushort vertex indices

14 years agor300g: fix misaligned generated offset for ubyte vertex indices
Marek Olšák [Sun, 21 Mar 2010 03:39:33 +0000 (04:39 +0100)]
r300g: fix misaligned generated offset for ubyte vertex indices

14 years agor300g: split the vertex buffer alignment validation
Marek Olšák [Sat, 20 Mar 2010 21:14:59 +0000 (22:14 +0100)]
r300g: split the vertex buffer alignment validation

14 years agor300g: skip null vertex buffers
Marek Olšák [Sat, 20 Mar 2010 20:26:19 +0000 (21:26 +0100)]
r300g: skip null vertex buffers

14 years agor300/compiler: fix assertion failure in the r500-fragprog emission path
Marek Olšák [Sat, 20 Mar 2010 17:31:11 +0000 (18:31 +0100)]
r300/compiler: fix assertion failure in the r500-fragprog emission path

14 years agor300g: Bump immediate limits.
Corbin Simpson [Sun, 21 Mar 2010 00:18:22 +0000 (17:18 -0700)]
r300g: Bump immediate limits.

Seems like a decent idea, especially since the big barrier now is
getting the VBOs back from the VRAM boundary.

14 years agor300g: Correctly hax max_index on pipe_vertex_buffers.
Corbin Simpson [Sun, 21 Mar 2010 00:16:46 +0000 (17:16 -0700)]
r300g: Correctly hax max_index on pipe_vertex_buffers.

Still not happy with this, but at least things seem to work.

14 years agoradeong: Use TRUE and FALSE.
Corbin Simpson [Sat, 20 Mar 2010 23:15:36 +0000 (16:15 -0700)]
radeong: Use TRUE and FALSE.

14 years agoradeong: Test the BO ptr for NULL instead of using a bool.
Corbin Simpson [Sat, 20 Mar 2010 23:14:20 +0000 (16:14 -0700)]
radeong: Test the BO ptr for NULL instead of using a bool.

Slight memory savings, but more importantly also avoids a potential NULL
dereference.

14 years agor300g: winsys fix tiling change flushes.
Dave Airlie [Sat, 20 Mar 2010 20:34:11 +0000 (06:34 +1000)]
r300g: winsys fix tiling change flushes.

If we change the tiling on a buffer we need to flush it, the old
radeon_buffer.c code had this but it crossed streams when I ported to
radeon_drm_buffer.c and I missed it. Should fix some piglit regressions.

Signed-off-by: Dave Airlie <airlied@redhat.com>
14 years agor300g: add buffer/texture referenced checks.
Dave Airlie [Sat, 20 Mar 2010 20:32:48 +0000 (06:32 +1000)]
r300g: add buffer/texture referenced checks.

I've no idea about the comments that were in there, just pass
this down to the winsys.

Signed-off-by: Dave Airlie <airlied@redhat.com>
14 years agodocs: note GL_EXT_packed_float, GL_EXT_shared_exponent extensions
Brian Paul [Sat, 20 Mar 2010 18:05:25 +0000 (12:05 -0600)]
docs: note GL_EXT_packed_float, GL_EXT_shared_exponent extensions

14 years agomesa: added GL3 query for GL_TEXTURE_SHARED_SIZE
Brian Paul [Sat, 20 Mar 2010 18:04:52 +0000 (12:04 -0600)]
mesa: added GL3 query for GL_TEXTURE_SHARED_SIZE

14 years agomesa: added missing glGet query for GL_MAX_ARRAY_TEXTURE_LAYERS_EXT
Brian Paul [Sat, 20 Mar 2010 17:55:24 +0000 (11:55 -0600)]
mesa: added missing glGet query for GL_MAX_ARRAY_TEXTURE_LAYERS_EXT

14 years agomesa: added new GL3 buffer object queries
Brian Paul [Sat, 20 Mar 2010 17:52:12 +0000 (11:52 -0600)]
mesa: added new GL3 buffer object queries

And clean up the error checking code.

14 years agomesa: added GL3 buffer attachment aliases
Brian Paul [Sat, 20 Mar 2010 17:50:55 +0000 (11:50 -0600)]
mesa: added GL3 buffer attachment aliases

14 years agomesa: added GL3 ContextFlags field and query code
Brian Paul [Sat, 20 Mar 2010 17:50:29 +0000 (11:50 -0600)]
mesa: added GL3 ContextFlags field and query code

14 years agor300/compiler: fix assertion failure in the r500-fragprog emission path
Marek Olšák [Sat, 20 Mar 2010 17:31:11 +0000 (18:31 +0100)]
r300/compiler: fix assertion failure in the r500-fragprog emission path

14 years agodocs: remove the 'Last updated date'
Brian Paul [Sat, 20 Mar 2010 16:33:10 +0000 (10:33 -0600)]
docs: remove the 'Last updated date'

14 years agoglapi: Fix aliases to non-static functions.
Chia-I Wu [Sat, 20 Mar 2010 15:58:15 +0000 (23:58 +0800)]
glapi: Fix aliases to non-static functions.

The bug is triggered by 41a87a43e11c664935349f938022d58d3e22da4e.
glBlitFramebuffer, for example, is an alias to the non-static
glBlitFramebufferEXT.  We should define glBlitFramebuffer as an alias to
_dispatch_stub_NNN.

14 years agoglapi: Correctly generate static disatches for X86.
Chia-I Wu [Thu, 18 Mar 2010 03:36:57 +0000 (11:36 +0800)]
glapi: Correctly generate static disatches for X86.

The entry point names, instead of the function name, should be used to
test if the entry point should be statically dispatched.

14 years agost/dri: fix bug in make_current
George Sapountzis [Fri, 19 Mar 2010 19:16:21 +0000 (19:16 +0000)]
st/dri: fix bug in make_current

14 years agost/dri: fix bug in allocate_textures
George Sapountzis [Fri, 19 Mar 2010 00:38:10 +0000 (02:38 +0200)]
st/dri: fix bug in allocate_textures

14 years agor300g: remove hacks from translate_vertex_data_swizzle
Marek Olšák [Tue, 9 Mar 2010 01:10:36 +0000 (02:10 +0100)]
r300g: remove hacks from translate_vertex_data_swizzle

Fixing RGBA 4ub vertex colors.

14 years agodrivers/x11: add PUBLIC qualifier to more API functions
Brian Paul [Fri, 19 Mar 2010 16:35:58 +0000 (10:35 -0600)]
drivers/x11: add PUBLIC qualifier to more API functions

Based on a patch from Tom Fogal.

14 years agogallivm: simplify and clean-up Z/stencil bit mask/shift code
Brian Paul [Fri, 19 Mar 2010 16:02:16 +0000 (10:02 -0600)]
gallivm: simplify and clean-up Z/stencil bit mask/shift code

Refactor the code into two helper functions which compute the bit mask
and shift terms for Z and stencil.  Plus add a bunch of new comments to
explain everything.

14 years agocso: remove cso_set/save/restore_sampler_textures
Roland Scheidegger [Fri, 19 Mar 2010 15:30:47 +0000 (16:30 +0100)]
cso: remove cso_set/save/restore_sampler_textures

no longer used after all statetrackers have been converted.

14 years agost/vega: fix up vega state tracker to use cso changes
Roland Scheidegger [Fri, 19 Mar 2010 15:29:22 +0000 (16:29 +0100)]
st/vega: fix up vega state tracker to use cso changes

use cso fragment sampler views instead of sampler textures.
since we don't really change views, try to store sampler views instead
of the textures to avoid having to recreate views most of the time.

14 years agoes: added -I$(TOP)/include path
Brian Paul [Fri, 19 Mar 2010 13:36:50 +0000 (07:36 -0600)]
es: added -I$(TOP)/include path

14 years agogallium/docs: Clarify sampler view descriptions.
Michal Krol [Fri, 19 Mar 2010 08:08:33 +0000 (09:08 +0100)]
gallium/docs: Clarify sampler view descriptions.

14 years agogallium/docs: Fix a couple ReST errors.
Corbin Simpson [Fri, 19 Mar 2010 07:07:55 +0000 (00:07 -0700)]
gallium/docs: Fix a couple ReST errors.

14 years agor300g: lod min/max clamping should be relative to the base level
Marek Olšák [Fri, 19 Mar 2010 03:46:15 +0000 (04:46 +0100)]
r300g: lod min/max clamping should be relative to the base level

14 years agor300g: fix breakage after the gallium-sampler-view merge
Marek Olšák [Fri, 19 Mar 2010 00:13:57 +0000 (01:13 +0100)]
r300g: fix breakage after the gallium-sampler-view merge

14 years agointel: Use bit-wise not instead of logical not (i830 path)
Ian Romanick [Fri, 19 Mar 2010 00:30:15 +0000 (17:30 -0700)]
intel: Use bit-wise not instead of logical not (i830 path)

The assertion is checking that the low-order bits of offset are not
set.  It does this by anding the inverted offset mask with the
offset.  This is clearly intended to be a bit-wise "invert".

Fixes bug #25984.

14 years agointel: Correct value of S0_VB_OFFSET_MASK to match hardware docs.
Ian Romanick [Fri, 19 Mar 2010 00:28:52 +0000 (17:28 -0700)]
intel: Correct value of S0_VB_OFFSET_MASK to match hardware docs.

14 years agor300g: add PIPE_FORMAT_B5G5R5X1_UNORM colorbuffer support, cleanups
Marek Olšák [Thu, 18 Mar 2010 20:18:36 +0000 (21:18 +0100)]
r300g: add PIPE_FORMAT_B5G5R5X1_UNORM colorbuffer support, cleanups

14 years agor300g: mark SRGB colorbuffers as unsupported
Marek Olšák [Thu, 18 Mar 2010 19:58:04 +0000 (20:58 +0100)]
r300g: mark SRGB colorbuffers as unsupported

I can't find the register bits for SRGB-aware blending and it's not even
exposed by fglrx so it's most probably not supported by hw.

14 years agor300g: add generating texture coordinates for point sprites (WIP)
Marek Olšák [Thu, 24 Dec 2009 20:29:41 +0000 (21:29 +0100)]
r300g: add generating texture coordinates for point sprites (WIP)

14 years agogallivm: support PIPE_FORMAT_Z24S8_UNORM in depth/stencil code
Brian Paul [Thu, 18 Mar 2010 23:27:39 +0000 (17:27 -0600)]
gallivm: support PIPE_FORMAT_Z24S8_UNORM in depth/stencil code

14 years agoUse bit-wise not instead of logical not.
Ian Romanick [Thu, 18 Mar 2010 22:35:05 +0000 (15:35 -0700)]
Use bit-wise not instead of logical not.

The assertion is checking that the low-order bits of offset are not
set.  It does this by anding the inverted offset mask with the
offset.  This is clearly intended to be a bit-wise "invert".

Fixes bug #25984.

14 years agoprogs/tests: also test stencil INCR_WRAP mode if supported
Brian Paul [Thu, 18 Mar 2010 21:04:31 +0000 (15:04 -0600)]
progs/tests: also test stencil INCR_WRAP mode if supported

14 years agogallivm: fix broken INCR/DECR stencil modes
Brian Paul [Thu, 18 Mar 2010 21:02:13 +0000 (15:02 -0600)]
gallivm: fix broken INCR/DECR stencil modes

We were mistakenly using the wrong data type for stencil values before.

14 years agoprogs/tests: comments and clean-ups
Brian Paul [Thu, 18 Mar 2010 20:53:43 +0000 (14:53 -0600)]
progs/tests: comments and clean-ups

14 years agogallivm/llvmpipe: added lp_rast_shader_inputs::facing and pass through
Brian Paul [Thu, 18 Mar 2010 19:02:53 +0000 (13:02 -0600)]
gallivm/llvmpipe: added lp_rast_shader_inputs::facing and pass through

The triangle rasterizer sets this field to indicate front/back-facing.
It gets passed into the generated fragment code as another parameter.
Used now for stencil front/back selection but will also be used for
fragment shaders in general (see TGSI_SEMANTIC_FACE).

With this commit two-sided stenciling mostly works but there's
still a bug or two...

14 years agollvmpipe: defines for RAST_WHOLE, RAST_EDGE_TEST
Brian Paul [Thu, 18 Mar 2010 18:04:50 +0000 (12:04 -0600)]
llvmpipe: defines for RAST_WHOLE, RAST_EDGE_TEST

14 years agoAdd format B5G5R5X1
Alan Hourihane [Thu, 18 Mar 2010 18:01:05 +0000 (18:01 +0000)]
Add format B5G5R5X1

14 years agogallivm/llvmpipe: simplify front/back stencil ref value handling
Brian Paul [Thu, 18 Mar 2010 17:31:38 +0000 (11:31 -0600)]
gallivm/llvmpipe: simplify front/back stencil ref value handling

Instead of passing an array, just pass two scalar values.

14 years agogallivm: checkpoint WIP two-sided stencil test
Brian Paul [Thu, 18 Mar 2010 17:18:01 +0000 (11:18 -0600)]
gallivm: checkpoint WIP two-sided stencil test

14 years agollvmpipe: set opaque = FALSE if stencil enabled
Brian Paul [Thu, 18 Mar 2010 15:30:13 +0000 (09:30 -0600)]
llvmpipe: set opaque = FALSE if stencil enabled

Fixes occasional bad tiles seen in some demos like progs/demos/reflect.c

14 years agost/mesa: s/unpack/pack/ to be more consistent
Brian Paul [Thu, 18 Mar 2010 15:17:11 +0000 (09:17 -0600)]
st/mesa: s/unpack/pack/ to be more consistent

14 years agodri/nouveau: Flush after texture validation.
Francisco Jerez [Thu, 18 Mar 2010 12:46:20 +0000 (13:46 +0100)]
dri/nouveau: Flush after texture validation.

Swizzling needs the destination surface in VRAM, but the subsequent
rendering operations making use of it are likely to not care. Fire the
ring after validation to leave the memory manager more room for
maneuvering.

14 years agodri/nouveau: Avoid pushbuf flushes in the middle of LMA setup.
Francisco Jerez [Thu, 18 Mar 2010 13:19:10 +0000 (14:19 +0100)]
dri/nouveau: Avoid pushbuf flushes in the middle of LMA setup.