mesa.git
15 years agollvmpipe: Don't assert due to unsupported texture wrap modes.
José Fonseca [Wed, 16 Sep 2009 15:12:22 +0000 (16:12 +0100)]
llvmpipe: Don't assert due to unsupported texture wrap modes.

Issue a warning and fallback to clamping.

15 years agoMerge branch 'mesa_7_6_branch'
Ian Romanick [Wed, 16 Sep 2009 15:05:36 +0000 (08:05 -0700)]
Merge branch 'mesa_7_6_branch'

15 years agogallium: remove incorrect 'return' stmt
Brian Paul [Wed, 16 Sep 2009 14:59:32 +0000 (08:59 -0600)]
gallium: remove incorrect 'return' stmt

15 years agoMerge branch 'mesa_7_5_branch' into mesa_7_6_branch
Ian Romanick [Wed, 16 Sep 2009 14:57:19 +0000 (07:57 -0700)]
Merge branch 'mesa_7_5_branch' into mesa_7_6_branch

Conflicts:
src/mesa/main/dlist.c

15 years agointel: Deassociated drawables from private context struct in intelUnbindContext
Ian Romanick [Wed, 16 Sep 2009 14:39:58 +0000 (07:39 -0700)]
intel: Deassociated drawables from private context struct in intelUnbindContext

The generic DRI infrastructure makes sure that __DRIcontextRec::driDrawablePriv
and __DRIcontextRec::driReadablePriv are set to NULL after unbinding a
context.  However, the intel_context structure keeps cached copies of
these pointers.  If these cached pointers are not NULLed and the
drawable is actually destroyed after unbinding the context (typically
by way of glXDestroyWindow), freed memory will be dereferenced in
intelDestroyContext.

This should fix bug #23418.

15 years agogallium: Deprecate PIPE_CAP_S3TC.
José Fonseca [Wed, 16 Sep 2009 13:31:14 +0000 (14:31 +0100)]
gallium: Deprecate PIPE_CAP_S3TC.

No longer used. S3TC support is queried via
pipe_screen::is_format_supported.

15 years agosoftpipe: Do not advertise Z32_UNORM as a supported format.
Michal Krol [Wed, 16 Sep 2009 12:56:58 +0000 (13:56 +0100)]
softpipe: Do not advertise Z32_UNORM as a supported format.

15 years agogdi: Integrate with llvmpipe where available.
José Fonseca [Wed, 16 Sep 2009 09:39:29 +0000 (10:39 +0100)]
gdi: Integrate with llvmpipe where available.

15 years agollvmpipe: Make the code portable for MinGW.
José Fonseca [Wed, 16 Sep 2009 09:39:06 +0000 (10:39 +0100)]
llvmpipe: Make the code portable for MinGW.

15 years agoi965: do a flush in clear, fix openarena render issue,
Zou Nan hai [Wed, 16 Sep 2009 05:25:46 +0000 (13:25 +0800)]
i965: do a flush in clear, fix openarena render issue,
      fd.o bug# 23857

15 years agoradeon: cleanup compile defines mess.
Dave Airlie [Wed, 16 Sep 2009 03:48:45 +0000 (13:48 +1000)]
radeon: cleanup compile defines mess.

I inherited this and really it stayed around far too long,
make it nice and simple.

15 years agoradeon: oops remove debugging left on in previous patch
Dave Airlie [Wed, 16 Sep 2009 03:25:02 +0000 (13:25 +1000)]
radeon: oops remove debugging left on in previous patch

15 years agoradeon: use txformat to decide to emit rect tex state.
Dave Airlie [Wed, 16 Sep 2009 03:07:02 +0000 (13:07 +1000)]
radeon: use txformat to decide to emit rect tex state.

This is more logical, and fixes a TFP issue.

15 years agomesa: move generate mipmap calls
Brian Paul [Wed, 16 Sep 2009 00:16:59 +0000 (18:16 -0600)]
mesa: move generate mipmap calls

Per the suggestion in the Intel driver, move the calls to
ctx->Driver.GenerateMipmap() into core Mesa so that drivers don't
have to worry about it.

15 years agomesa: minor clean-up
Brian Paul [Wed, 16 Sep 2009 00:09:03 +0000 (18:09 -0600)]
mesa: minor clean-up

15 years agomesa: remove last of gotos
Brian Paul [Tue, 15 Sep 2009 23:41:40 +0000 (17:41 -0600)]
mesa: remove last of gotos

15 years agomesa: more goto removal
Brian Paul [Tue, 15 Sep 2009 23:36:35 +0000 (17:36 -0600)]
mesa: more goto removal

15 years agomesa: remove some gotos
Brian Paul [Tue, 15 Sep 2009 23:32:01 +0000 (17:32 -0600)]
mesa: remove some gotos

This will make some subsequent changes easier...

15 years agomesa: clean-up fbo debug code
Brian Paul [Tue, 15 Sep 2009 23:20:32 +0000 (17:20 -0600)]
mesa: clean-up fbo debug code

15 years agoprogs/demos: use non-default texobj in cubemap.c
Brian Paul [Tue, 15 Sep 2009 23:13:49 +0000 (17:13 -0600)]
progs/demos: use non-default texobj in cubemap.c

15 years agoprogs/demos: create a texture object in lodbias.c
Brian Paul [Tue, 15 Sep 2009 23:08:33 +0000 (17:08 -0600)]
progs/demos: create a texture object in lodbias.c

Before, we were using the default texture object (name=0).  This caused
the intel_generate_mipmap() path to fail since passing texture=0 to
glFramebufferTexture2DEXT() causes us to _unbind_ the texture if present.

15 years agost/xorg: fixing copies and composite shaders
Zack Rusin [Tue, 15 Sep 2009 15:01:21 +0000 (11:01 -0400)]
st/xorg: fixing copies and composite shaders

copies were busted when src == dst. also the composite shaders
were incorrectly using the fragments instead of the texture coordinate.

15 years agost/xorg: lots of fixes
Zack Rusin [Tue, 15 Sep 2009 13:02:20 +0000 (09:02 -0400)]
st/xorg: lots of fixes

fixes blending binding and copy coordinates

15 years agodocs: GL_ARB_provoking_vertex
Brian Paul [Tue, 15 Sep 2009 22:01:33 +0000 (16:01 -0600)]
docs: GL_ARB_provoking_vertex

15 years agomesa: added GL_ARB_provoking_vertex (same as EXT version)
Brian Paul [Tue, 15 Sep 2009 22:01:22 +0000 (16:01 -0600)]
mesa: added GL_ARB_provoking_vertex (same as EXT version)

15 years agoradeon: don't build non-r600 span code on r600
Alex Deucher [Tue, 15 Sep 2009 21:12:03 +0000 (17:12 -0400)]
radeon: don't build non-r600 span code on r600

15 years agor600: minor span cleanups
Alex Deucher [Tue, 15 Sep 2009 20:58:37 +0000 (16:58 -0400)]
r600: minor span cleanups

15 years agodocs: glUniform functions are now compiled into display lists
Brian Paul [Tue, 15 Sep 2009 21:12:29 +0000 (15:12 -0600)]
docs: glUniform functions are now compiled into display lists

15 years agomesa: compile glUniformMatrix() functions into display lists
Brian Paul [Tue, 15 Sep 2009 21:10:29 +0000 (15:10 -0600)]
mesa: compile glUniformMatrix() functions into display lists

I believe this is the last of the shader-related functions that needed
display list treatment.

15 years agomesa: implement more glUniform display list functions
Brian Paul [Tue, 15 Sep 2009 20:56:55 +0000 (14:56 -0600)]
mesa: implement more glUniform display list functions

15 years agodocs: document glUseProgram display list fix
Brian Paul [Tue, 15 Sep 2009 20:38:52 +0000 (14:38 -0600)]
docs: document glUseProgram display list fix

15 years agomesa: compile glUniform4f() into display lists
Brian Paul [Tue, 15 Sep 2009 20:31:10 +0000 (14:31 -0600)]
mesa: compile glUniform4f() into display lists

Note: there are more glUniform functions to compile...

15 years agomesa: compile glUseProgram/glUseProgramObjectARB into display lists
Brian Paul [Tue, 15 Sep 2009 20:25:44 +0000 (14:25 -0600)]
mesa: compile glUseProgram/glUseProgramObjectARB into display lists

Fixes bug 23746

15 years agoMerge branch 'mesa_7_6_branch'
Ian Romanick [Tue, 15 Sep 2009 20:14:38 +0000 (13:14 -0700)]
Merge branch 'mesa_7_6_branch'

15 years agoMerge commit 'origin/mesa_7_5_branch' into mesa_7_6_branch
Ian Romanick [Tue, 15 Sep 2009 20:13:35 +0000 (13:13 -0700)]
Merge commit 'origin/mesa_7_5_branch' into mesa_7_6_branch

15 years agoGLX: Complain when buggy applications call GLX 1.3 functions.
Ian Romanick [Tue, 15 Sep 2009 20:12:22 +0000 (13:12 -0700)]
GLX: Complain when buggy applications call GLX 1.3 functions.

15 years agost/xorg: Brian suggested that those could be mad's
Zack Rusin [Tue, 15 Sep 2009 10:00:52 +0000 (06:00 -0400)]
st/xorg: Brian suggested that those could be mad's

optimizes the common paths

15 years agomesa: remove incorrect texture state check
Brian Paul [Tue, 15 Sep 2009 18:35:41 +0000 (12:35 -0600)]
mesa: remove incorrect texture state check

Fixes incorrectly textured bitmap text in engine demo.
It's incorrect to test the texture enable bits here since they may have
been changed by disabling the shader above.  Optimization is still possible
but will have to be reexamined.

15 years agonv50: avoid excessive FIRE_RING
Maarten Maathuis [Mon, 14 Sep 2009 18:21:56 +0000 (20:21 +0200)]
nv50: avoid excessive FIRE_RING

- And reduce RING_SPACE to 2, instead of 3.

15 years agonv50: use flush_notify to reduce number of relocs
Maarten Maathuis [Mon, 14 Sep 2009 17:42:53 +0000 (19:42 +0200)]
nv50: use flush_notify to reduce number of relocs

15 years agost/xorg: Only unreference texture on pixmap destruction, don't destroy it.
Michel Dänzer [Tue, 15 Sep 2009 16:31:07 +0000 (18:31 +0200)]
st/xorg: Only unreference texture on pixmap destruction, don't destroy it.

Fixes memory corruption if e.g. the driver still has references to the texture.

15 years agost/xorg: Explicitly check whether the driver supports the pixmap formats.
Michel Dänzer [Tue, 15 Sep 2009 16:30:58 +0000 (18:30 +0200)]
st/xorg: Explicitly check whether the driver supports the pixmap formats.

Rather than arbitrarily checking for pixmap depth < 15.

15 years agost/xorg: Use A8 format for depth 8 pixmaps.
Michel Dänzer [Tue, 15 Sep 2009 16:23:00 +0000 (18:23 +0200)]
st/xorg: Use A8 format for depth 8 pixmaps.

The inconsistent bpp caused issues with UploadTo/DownloadFromScreen.

15 years agost/mesa: disable accidentally committed _mesa_print_program() call
Brian Paul [Tue, 15 Sep 2009 15:52:27 +0000 (09:52 -0600)]
st/mesa: disable accidentally committed _mesa_print_program() call

15 years agoMerge branch 'mesa_7_6_branch'
Brian Paul [Tue, 15 Sep 2009 15:47:35 +0000 (09:47 -0600)]
Merge branch 'mesa_7_6_branch'

15 years agoMerge branch 'mesa_7_5_branch' into mesa_7_6_branch
Brian Paul [Tue, 15 Sep 2009 15:45:18 +0000 (09:45 -0600)]
Merge branch 'mesa_7_5_branch' into mesa_7_6_branch

15 years agoARB prog parser: regenerated file
Brian Paul [Mon, 14 Sep 2009 23:34:40 +0000 (17:34 -0600)]
ARB prog parser: regenerated file

15 years agoARB prog parser: more detailed error message for out of bounds ADDR offsets
Brian Paul [Mon, 14 Sep 2009 23:34:09 +0000 (17:34 -0600)]
ARB prog parser: more detailed error message for out of bounds ADDR offsets

15 years agogl: restore some PFNGL typedefs
Brian Paul [Tue, 15 Sep 2009 15:36:31 +0000 (09:36 -0600)]
gl: restore some PFNGL typedefs

Commit d33c315d9e32584dea12cea683795b498a9f5eca removed a few too many
typedefs.  We need the typedefs in glext.h which are protected by #ifdef
GL_VERSION_1_2 but we can exclude the ones protected by
GL_VERSION_1_2_DEPRECATED.

15 years agor600: support position_invariant programs
Andre Maasikas [Tue, 15 Sep 2009 15:27:51 +0000 (11:27 -0400)]
r600: support position_invariant programs

15 years agogallium: Use the enum for pipe_transfer::usage.
José Fonseca [Tue, 15 Sep 2009 15:02:20 +0000 (16:02 +0100)]
gallium: Use the enum for pipe_transfer::usage.

15 years agogallium: pipe_transfer_destroy helper inline.
José Fonseca [Tue, 15 Sep 2009 15:02:00 +0000 (16:02 +0100)]
gallium: pipe_transfer_destroy helper inline.

15 years agonv50: fix stupid thinko in emit_set
Christoph Bumiller [Tue, 15 Sep 2009 13:24:32 +0000 (15:24 +0200)]
nv50: fix stupid thinko in emit_set

When swapping sources 0 and 1, EQ of course does *not*
become NE, etc.

Introduced in 2b963f5c723401aa2646bd48eefe065cd335e280.

15 years agogallium: Fix pointer type casts.
Michal Krol [Tue, 15 Sep 2009 11:00:27 +0000 (12:00 +0100)]
gallium: Fix pointer type casts.

15 years agonv50: let programs use the whole param buffer
Christoph Bumiller [Tue, 15 Sep 2009 09:56:58 +0000 (11:56 +0200)]
nv50: let programs use the whole param buffer

Allocation is unnecessary since all uniforms are
uploaded on every constant buffer change anyway.

15 years agonv50: add preliminary support for point sprites
Christoph Bumiller [Mon, 14 Sep 2009 19:03:19 +0000 (21:03 +0200)]
nv50: add preliminary support for point sprites

15 years agonv50: add support for point size per vertex
Christoph Bumiller [Tue, 15 Sep 2009 09:49:41 +0000 (11:49 +0200)]
nv50: add support for point size per vertex

15 years agonv50: add support for light-twoside
Christoph Bumiller [Mon, 14 Sep 2009 18:52:52 +0000 (20:52 +0200)]
nv50: add support for light-twoside

15 years agonv50: proper linkage between VP and FP
Christoph Bumiller [Mon, 14 Sep 2009 18:23:39 +0000 (20:23 +0200)]
nv50: proper linkage between VP and FP

This moves construction of the mapping between VP outputs
and FP inputs into validation.

The map also contains slots for special outputs like clip
distance and point size, so we need to at least merge the
VP related and FP related parts on validation if we want
to support those.

Now we match every single FP input component with results
from the VP and leave those not read out of the map, or
replace those not written by 0 (xyz) or 1 (w).
The bitmap indicating linear interpolants is also filled,
and flat FP inputs are mapped in only after non-flat ones,
as is required.

Furthermore, we can save some space by only fetching VP
attrs we actually use, and avoid wasting any output regs
because of TGSI using less than 4 components.

15 years agonv50: move allocation of pc regs
Christoph Bumiller [Tue, 15 Sep 2009 09:47:00 +0000 (11:47 +0200)]
nv50: move allocation of pc regs

Make use of tgsi_shader_info to determine how many nv50_regs we
need to allocate, whether program uses KIL, or writes DEPR.

15 years agonv50: nicer initialization of nv50_regs
Christoph Bumiller [Tue, 15 Sep 2009 09:45:40 +0000 (11:45 +0200)]
nv50: nicer initialization of nv50_regs

15 years agonv50: handle CEIL and TRUNC opcodes
Christoph Bumiller [Thu, 10 Sep 2009 20:42:57 +0000 (22:42 +0200)]
nv50: handle CEIL and TRUNC opcodes

15 years agonv50: handle SEQ, SGT, SLE, SNE opcodes
Christoph Bumiller [Thu, 10 Sep 2009 20:38:09 +0000 (22:38 +0200)]
nv50: handle SEQ, SGT, SLE, SNE opcodes

15 years agonv50: SIN and COS use src0.w for dst.w
Christoph Bumiller [Tue, 15 Sep 2009 09:44:59 +0000 (11:44 +0200)]
nv50: SIN and COS use src0.w for dst.w

15 years agonv50: use broadcast TEMP reg in tx_insn
Christoph Bumiller [Thu, 10 Sep 2009 14:33:54 +0000 (16:33 +0200)]
nv50: use broadcast TEMP reg in tx_insn

Makes some opcode cases nicer and might reduce the total
nr of TEMPs required, or save some MOVs.

15 years agonv50: add nv50_tgsi_insn to handle swizzles safely
Christoph Bumiller [Tue, 15 Sep 2009 09:44:19 +0000 (11:44 +0200)]
nv50: add nv50_tgsi_insn to handle swizzles safely

15 years agonv50: add functions for swizzle resolution
Christoph Bumiller [Thu, 10 Sep 2009 11:48:24 +0000 (13:48 +0200)]
nv50: add functions for swizzle resolution

We're going to try to reorder the scalar ops of a vector instr
to accomodate swizzles that would otherwise require us to emit
to an additional TEMP first (like MOV R0.xy, R0.zx).

15 years agonv50: extend insn src mask function
Christoph Bumiller [Thu, 10 Sep 2009 10:00:37 +0000 (12:00 +0200)]
nv50: extend insn src mask function

Extend its usage to avoiding e.g. emission of negation
instructions in tx_insn for sources we don't need.

15 years agost/g3dvl: pass color values to softpipe clear function
Cooper Yuan [Tue, 15 Sep 2009 07:25:47 +0000 (15:25 +0800)]
st/g3dvl: pass color values to softpipe clear function

15 years agoxvmc: Generate new resource ID in _XIDHandler, otherwise it's invalid.
Cooper Yuan [Tue, 15 Sep 2009 05:16:56 +0000 (13:16 +0800)]
xvmc: Generate new resource ID in _XIDHandler, otherwise it's invalid.

15 years agoprogs/vp: print program and error info when program does not compile
Brian Paul [Mon, 14 Sep 2009 23:48:17 +0000 (17:48 -0600)]
progs/vp: print program and error info when program does not compile

15 years agoglsl: added some link debug code (disabled)
Brian Paul [Mon, 14 Sep 2009 23:32:03 +0000 (17:32 -0600)]
glsl: added some link debug code (disabled)

15 years agodocs: document linker/preprocessor bug fix
Brian Paul [Mon, 14 Sep 2009 23:27:47 +0000 (17:27 -0600)]
docs: document linker/preprocessor bug fix

15 years agoglsl: remove extra #version directives from concatenated shader sources
Brian Paul [Mon, 14 Sep 2009 23:24:25 +0000 (17:24 -0600)]
glsl: remove extra #version directives from concatenated shader sources

When we concatenate shaders to do our form of poor-man linking, if there's
multiple #version directives, preprocessing fails.  This change disables
the extra #version directives by changing the first two chars to //.

This should help with some Wine issues such as bug 23946.

15 years agost/xorg: add some debugging helpers
Zack Rusin [Mon, 14 Sep 2009 23:01:21 +0000 (19:01 -0400)]
st/xorg: add some debugging helpers

15 years agor600: add span support for 1D tiles
Alex Deucher [Mon, 14 Sep 2009 22:05:15 +0000 (18:05 -0400)]
r600: add span support for 1D tiles

1D tile span support for depth/stencil/color/textures

Z and stencil buffers are always tiled, so this fixes
sw access to Z and stencil buffers.  color and textures
are currently linear, but this adds span support when we
implement 1D tiling.

This fixes the text in progs/demos/engine and progs/tests/z*

15 years agor600: fix warning
Alex Deucher [Mon, 14 Sep 2009 21:08:26 +0000 (17:08 -0400)]
r600: fix warning

Noticed by rnoland on IRC.

15 years agost/mesa: minor whitespace, comment clean-ups
Brian Paul [Mon, 14 Sep 2009 22:01:27 +0000 (16:01 -0600)]
st/mesa: minor whitespace, comment clean-ups

15 years agost/xorg: fix ureg_DECL_constant() parameters
Brian Paul [Mon, 14 Sep 2009 21:47:07 +0000 (15:47 -0600)]
st/xorg: fix ureg_DECL_constant() parameters

This fixes the compilation errors reported in bug 23945 but someone more
familiar with the code should review for correctness and close the bug
report.

15 years agoscons: Allow to use only the WINDDK headers.
José Fonseca [Tue, 1 Sep 2009 09:17:39 +0000 (10:17 +0100)]
scons: Allow to use only the WINDDK headers.

15 years agoscons: Allow to use MS's DXSDK headers with MinGW.
José Fonseca [Tue, 1 Sep 2009 09:11:08 +0000 (10:11 +0100)]
scons: Allow to use MS's DXSDK headers with MinGW.

15 years agogallium: Add pipe_transfer_map/unmap inlines.
José Fonseca [Mon, 1 Jun 2009 16:20:29 +0000 (09:20 -0700)]
gallium: Add pipe_transfer_map/unmap inlines.

15 years agoutil: Add _BitScanForward intrinsic's declaration.
José Fonseca [Mon, 1 Jun 2009 15:58:34 +0000 (08:58 -0700)]
util: Add _BitScanForward intrinsic's declaration.

It is missing in some Microsoft DDKs.

15 years agointel: minor code clean-ups
Brian Paul [Mon, 14 Sep 2009 18:42:07 +0000 (12:42 -0600)]
intel: minor code clean-ups

15 years agointel: fix renderbuffer map/unmap regression
Brian Paul [Mon, 14 Sep 2009 18:40:53 +0000 (12:40 -0600)]
intel: fix renderbuffer map/unmap regression

Commit 36dd53a3cded9d003ec418732b7fc93c1476aa9b caused a few regressions
because the glReadBuffer() buffer wasn't getting mapped when GL_READ_BUFFER
!= GL_DRAW_BUFFER.

15 years agointel: remove unneeded driver function assignments
Brian Paul [Fri, 11 Sep 2009 20:49:00 +0000 (14:49 -0600)]
intel: remove unneeded driver function assignments

These default swrast functions are already installed by
_mesa_init_driver_functions().

15 years agoprogs/tests: exercise display lists and pixelstore
Brian Paul [Fri, 11 Sep 2009 17:14:12 +0000 (11:14 -0600)]
progs/tests: exercise display lists and pixelstore

15 years agogallium: Add Mac OS to pipe/p_thread.h.
Vinson Lee [Mon, 14 Sep 2009 17:50:48 +0000 (11:50 -0600)]
gallium: Add Mac OS to pipe/p_thread.h.

Mac OS also has POSIX threads.

15 years agoconfigure: fix comment
Thierry Vignaud [Mon, 14 Sep 2009 17:48:51 +0000 (11:48 -0600)]
configure: fix comment

15 years agomesa/st: remove dead comment
Keith Whitwell [Mon, 14 Sep 2009 16:11:09 +0000 (17:11 +0100)]
mesa/st: remove dead comment

15 years agost/mesa: convert to new tgsi_ureg mechanism for shader emit
Keith Whitwell [Sat, 12 Sep 2009 21:22:48 +0000 (14:22 -0700)]
st/mesa: convert to new tgsi_ureg mechanism for shader emit

Should be easier to read and work with than the older ways of emitting
TGSI tokens.

Also, emit simpler TGSI than previously:
  - translate away source and dest extended modifiers
  - translate away the SWZ opcode

15 years agonv50: Fix m2mf positions.
Marcin Kościelnicki [Mon, 14 Sep 2009 09:56:55 +0000 (09:56 +0000)]
nv50: Fix m2mf positions.

15 years agollvmpipe: Make lp_type a regular union.
José Fonseca [Mon, 14 Sep 2009 10:05:06 +0000 (11:05 +0100)]
llvmpipe: Make lp_type a regular union.

Union not worth the hassle of violating C99 or adding a name to
the structure.

15 years agoutil: Fix a1r5g5b5's format description.
José Fonseca [Mon, 14 Sep 2009 10:01:27 +0000 (11:01 +0100)]
util: Fix a1r5g5b5's format description.

15 years agog3dvl: update tgsi_opcode in order to build g3dvl library
Cooper Yuan [Mon, 14 Sep 2009 08:23:03 +0000 (16:23 +0800)]
g3dvl: update tgsi_opcode in order to build g3dvl library

15 years agotgsi: handle some src/dst aliasing in tgsi_sse2.c
Keith Whitwell [Sun, 13 Sep 2009 18:59:24 +0000 (11:59 -0700)]
tgsi: handle some src/dst aliasing in tgsi_sse2.c

Src/Dst aliasing (aka SOA dependencies) requires some care to ensure
intermediate results do not overwrite yet-to-be read source registers.

This change ensures that MOV/SWZ handle this correctly, which is poor but
no worse than the current tgsi_exec.c path.  Remove the fallback as there
is nothing to be gained correctness-wise between the two implementations now.

Fixing this properly looks like a bit of work in this code, but might be
easily achieved by sending destination writes to temporary storage.

15 years agollvmpipe: Compute derivatives.
José Fonseca [Sun, 13 Sep 2009 15:22:27 +0000 (16:22 +0100)]
llvmpipe: Compute derivatives.

15 years agollvmpipe: Remove dead references to pipe_winsys.
José Fonseca [Sun, 13 Sep 2009 15:13:12 +0000 (16:13 +0100)]
llvmpipe: Remove dead references to pipe_winsys.

15 years agollvmpipe: Use const keyword for input array arguments.
José Fonseca [Sun, 13 Sep 2009 15:12:48 +0000 (16:12 +0100)]
llvmpipe: Use const keyword for input array arguments.

15 years agollvmpipe: Delay storing into the dst register to prevent clobbering the src registers.
José Fonseca [Sun, 13 Sep 2009 13:42:52 +0000 (14:42 +0100)]
llvmpipe: Delay storing into the dst register to prevent clobbering the src registers.

How I'm thankful for regular expressions -- just a couple of them were
all that was needed to do this otherwise tiresome and bug prone change.