diff options
author | Roland Scheidegger <[email protected]> | 2012-11-29 04:00:35 +0100 |
---|---|---|
committer | Roland Scheidegger <[email protected]> | 2012-11-29 15:31:46 +0100 |
commit | b5918d8f1d0d963e58ede1f82ecd836a815cfd89 (patch) | |
tree | 22fb3b1305488e7e12332dc2819e628d23d985ec /src/gallium/auxiliary/gallivm | |
parent | 6d50148742512606f2abd76a2dcef6c87a5c7471 (diff) |
gallivm: fix a trivial txq issue for 2d shadow and cube shadow samplers
untested (couldn't get the piglit test to run even with version overrides)
but seemed blatantly wrong.
In any case it would only affect an error case which when it would happen
probably all hope is lost anyway.
Reviewed-by: José Fonseca <[email protected]>
Diffstat (limited to 'src/gallium/auxiliary/gallivm')
-rw-r--r-- | src/gallium/auxiliary/gallivm/lp_bld_tgsi_soa.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gallium/auxiliary/gallivm/lp_bld_tgsi_soa.c b/src/gallium/auxiliary/gallivm/lp_bld_tgsi_soa.c index b94e12cb77f..cdc784cf0df 100644 --- a/src/gallium/auxiliary/gallivm/lp_bld_tgsi_soa.c +++ b/src/gallium/auxiliary/gallivm/lp_bld_tgsi_soa.c @@ -1408,13 +1408,13 @@ emit_txq( struct lp_build_tgsi_soa_context *bld, switch (inst->Texture.Texture) { case TGSI_TEXTURE_1D: case TGSI_TEXTURE_SHADOW1D: - case TGSI_TEXTURE_SHADOW2D: - case TGSI_TEXTURE_SHADOWCUBE: num_coords = 1; has_lod = 1; break; case TGSI_TEXTURE_2D: + case TGSI_TEXTURE_SHADOW2D: case TGSI_TEXTURE_CUBE: + case TGSI_TEXTURE_SHADOWCUBE: case TGSI_TEXTURE_1D_ARRAY: case TGSI_TEXTURE_SHADOW1D_ARRAY: num_coords = 2; |