mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-25 12:20:17 +01:00
i965/fs: Fix bad interaction between tex swizzles and textureQueryLOD.
Reported-by: Chris Forbes <chrisf@ijw.co.nz> Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
This commit is contained in:
parent
4ee892ee8a
commit
e2b40e253b
1 changed files with 1 additions and 1 deletions
|
|
@ -1468,7 +1468,7 @@ fs_visitor::swizzle_result(ir_texture *ir, fs_reg orig_val, int sampler)
|
|||
{
|
||||
this->result = orig_val;
|
||||
|
||||
if (ir->op == ir_txs)
|
||||
if (ir->op == ir_txs || ir->op == ir_lod)
|
||||
return;
|
||||
|
||||
if (ir->type == glsl_type::float_type) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue