mesa/src
Paul Berry d92463d5dc i965: vs optimization fix: Check val.{negate,abs} in accumulator_contains()
When emitting a MAC instruction in a vertex shader, brw_vs_emit()
calls accumulator_contains() to determine whether the accumulator
already contains the appropriate addend; if it does, then we can avoid
emitting an unnecessary MOV instruction.

However, accumulator_contains() wasn't checking the val.negate or
val.abs flags.  As a result, if the desired value was the negation, or
the absolute value, of what was already in the accumulator, we would
generate an incorrect shader.

Fixes piglit test vs-refract-vec4-vec4-float.

Tested on Gen5 and Gen6.

Reviewed-by: Eric Anholt <eric@anholt.net>
2011-07-25 11:40:53 -07:00
..
egl Rename swrastg_dri to swrast_dri 2011-07-14 03:03:26 +02:00
gallium vdpau: enable mpeg1 hw decoding, using the exact same code path as mpeg2 2011-07-25 19:22:35 +02:00
gbm Make it possible to use gbm with c++ 2011-07-19 16:30:07 -07:00
getopt getopt: Make code more portable. 2011-01-12 16:54:21 +00:00
glsl glsl: Compare vector indices in blocks 2011-07-23 01:24:18 -07:00
glu sgi: Fix MSVC build. 2011-04-27 19:06:07 +01:00
glw glw: Mark all extern symbols GLAPI to regain default visibility (#31294) 2011-06-20 12:31:01 -07:00
glx glx: Avoid calling __glXInitialize() in driReleaseDrawables(). 2011-07-19 23:27:46 +02:00
mapi glapi: Update specs to correctly list FramebufferTextureLayerARB as an alias of FramebufferTextureLayerEXT 2011-06-20 16:54:58 -07:00
mesa i965: vs optimization fix: Check val.{negate,abs} in accumulator_contains() 2011-07-25 11:40:53 -07:00
Makefile
SConscript Squashed commit of the following: 2011-07-14 17:35:05 +01:00