OSDN Git Service

r300/compiler: fix shadow sampling with swizzled coords
authorMarek Olšák <maraeo@gmail.com>
Tue, 28 Sep 2010 01:58:23 +0000 (03:58 +0200)
committerMarek Olšák <maraeo@gmail.com>
Tue, 28 Sep 2010 03:34:51 +0000 (05:34 +0200)
commit7128e1625bea502b9bf083f14606d679c90222a6
treeba1df823f35e302c24f288516b9d98b1d987258f
parentc2ea7ffb0a9368571bb62038aeb318307afedb40
r300/compiler: fix shadow sampling with swizzled coords

Taking the W component from coords directly ignores swizzling. Instead,
take the component which is mapped to W in the TEX instruction parameter.
The same for Z.

NOTE: This is a candidate for the 7.9 branch.
src/mesa/drivers/dri/r300/compiler/radeon_program_tex.c