mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 16:08:04 +02:00
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@whitecape.org> Reviewed-by: Jordan Justen <jordan.l.justen@intel.com>
This commit is contained in:
parent
dd7d068784
commit
62050886c8
1 changed files with 1 additions and 1 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue