summaryrefslogtreecommitdiffstats
path: root/src/mesa/Makefile.sources
diff options
context:
space:
mode:
authorVille Syrjälä <[email protected]>2014-07-02 02:23:20 +0300
committerVille Syrjälä <[email protected]>2014-11-20 21:58:57 +0200
commit390799c496d363e7476afb0dbb8f28cbc6e20807 (patch)
tree542e55c0c9ea22b3d5e90e8cf8bb24a96d6a9270 /src/mesa/Makefile.sources
parentca39c46c3be82be0a36316e5da32b558c4837aea (diff)
i915: Only use TEXCOORDTYPE_VECTOR with cube maps on gen2
Check that the target is GL_TEXTURE_CUBE_MAP before emitting TEXCOORDTYPE_VECTOR texture coordinates. I'm not sure if the hardware would like CARTESIAN coordinates with cube maps, and as I'm too lazy to find out just emit the VECTOR coordinates for cube maps always. For other targets use CARTESIAN or HOMOGENOUS depending on the number of texture coordinates provided. Fixes rendering of the "electric" background texture in chromium-bsu main menu. We appear to be provided with three texture coordinates there (I'm guessing due to the funky texture matrix rotation it does). So the code would decide to use TEXCOORDTYPE_VECTOR instead of TEXCOORDTYPE_CARTESIAN even though we're dealing with a 2D texure. The results weren't what one might expect. demos/cubemap still works, which hopefully indicates that this doesn't break things. Also tested with: bin/glean -o -v -v -v -t +texCube --quick bin/cubemap -auto from piglit. Reviewed-by: Ian Romanick <[email protected]> Signed-off-by: Ville Syrjälä <[email protected]>
Diffstat (limited to 'src/mesa/Makefile.sources')
0 files changed, 0 insertions, 0 deletions