Mesa (master): i965/fp: Set coord_components correctly for cube textures.
Kenneth Graunke
kwg at kemper.freedesktop.org
Mon Apr 6 21:35:48 UTC 2015
Module: Mesa
Branch: master
Commit: 62050886c85b7b3b6c94e3c2363966b4f14df0bd
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=62050886c85b7b3b6c94e3c2363966b4f14df0bd
Author: Kenneth Graunke <kenneth at whitecape.org>
Date: Fri Apr 3 18:30:57 2015 -0700
i965/fp: Set coord_components correctly for cube textures.
I've no idea why this was 4. It certainly seems wrong.
Prevents assertion failures in fp-incomplete-tex with some upcoming
patches of mine.
Signed-off-by: Kenneth Graunke <kenneth at whitecape.org>
Reviewed-by: Jordan Justen <jordan.l.justen at intel.com>
---
src/mesa/drivers/dri/i965/brw_fs_fp.cpp | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/mesa/drivers/dri/i965/brw_fs_fp.cpp b/src/mesa/drivers/dri/i965/brw_fs_fp.cpp
index c4064da..21d677a 100644
--- a/src/mesa/drivers/dri/i965/brw_fs_fp.cpp
+++ b/src/mesa/drivers/dri/i965/brw_fs_fp.cpp
@@ -448,7 +448,7 @@ fs_visitor::emit_fragment_program_code()
break;
case TEXTURE_CUBE_INDEX: {
- coord_components = 4;
+ coord_components = 3;
fs_reg temp = vgrf(glsl_type::float_type);
fs_reg cubecoord = vgrf(glsl_type::vec3_type);
More information about the mesa-commit
mailing list