mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-24 02:20:11 +01:00
i965: Don't try to normalize cubemap coordinates for textureSize.
Although textureSize is represented as an ir_texture with op == ir_txs, it doesn't have a coordinate, so normalizing it doesn't make sense. Fixes crashes in oglconform glsl-bif-tex-size basic.samplerCube.* tests. Signed-off-by: Kenneth Graunke <kenneth@whitecape.org> Reviewed-by: Eric Anholt <eric@anholt.net>
This commit is contained in:
parent
bf8ad170c5
commit
b618e78897
1 changed files with 3 additions and 0 deletions
|
|
@ -51,6 +51,9 @@ brw_cubemap_normalize_visitor::visit_leave(ir_texture *ir)
|
|||
if (ir->sampler->type->sampler_dimensionality != GLSL_SAMPLER_DIM_CUBE)
|
||||
return visit_continue;
|
||||
|
||||
if (ir->op == ir_txs)
|
||||
return visit_continue;
|
||||
|
||||
void *mem_ctx = ralloc_parent(ir);
|
||||
|
||||
ir_variable *var = new(mem_ctx) ir_variable(ir->coordinate->type,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue