diff options
author | Kenneth Graunke <[email protected]> | 2015-04-03 18:30:57 -0700 |
---|---|---|
committer | Kenneth Graunke <[email protected]> | 2015-04-06 13:49:01 -0700 |
commit | 62050886c85b7b3b6c94e3c2363966b4f14df0bd (patch) | |
tree | e067b529e089b1b5a67b71269117d07fd6912799 /src/mesa/drivers | |
parent | dd7d0687848fb6c310debef4a6ff61b2159d2a4d (diff) |
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 <[email protected]>
Reviewed-by: Jordan Justen <[email protected]>
Diffstat (limited to 'src/mesa/drivers')
-rw-r--r-- | src/mesa/drivers/dri/i965/brw_fs_fp.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mesa/drivers/dri/i965/brw_fs_fp.cpp b/src/mesa/drivers/dri/i965/brw_fs_fp.cpp index c4064da88a0..21d677a45a1 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); |