radeon/llvm: fix TXQ_LZ handling for cube maps
authorVadim Girlin <vadimgirlin@gmail.com>
Tue, 18 Dec 2012 13:40:36 +0000 (17:40 +0400)
committerVadim Girlin <vadimgirlin@gmail.com>
Tue, 18 Dec 2012 13:40:57 +0000 (17:40 +0400)
Signed-off-by: Vadim Girlin <vadimgirlin@gmail.com>
src/gallium/drivers/radeon/radeon_setup_tgsi_llvm.c

index db25c8922743441e34e54e7ce469f47afddf3bab..647b66566bdebe57803e2caf864192c906c5e71f 100644 (file)
@@ -608,7 +608,8 @@ static void txp_fetch_args(
 
        if ((inst->Texture.Texture == TGSI_TEXTURE_CUBE ||
             inst->Texture.Texture == TGSI_TEXTURE_SHADOWCUBE) &&
-           inst->Instruction.Opcode != TGSI_OPCODE_TXQ) {
+           inst->Instruction.Opcode != TGSI_OPCODE_TXQ &&
+           inst->Instruction.Opcode != TGSI_OPCODE_TXQ_LZ) {
                radeon_llvm_emit_prepare_cube_coords(bld_base, &emit_data->args[0],
                                                      inst->Texture.Texture);
        }
@@ -641,7 +642,8 @@ static void tex_fetch_args(
 
        if ((inst->Texture.Texture == TGSI_TEXTURE_CUBE ||
             inst->Texture.Texture == TGSI_TEXTURE_SHADOWCUBE) &&
-           inst->Instruction.Opcode != TGSI_OPCODE_TXQ) {
+           inst->Instruction.Opcode != TGSI_OPCODE_TXQ &&
+           inst->Instruction.Opcode != TGSI_OPCODE_TXQ_LZ) {
                radeon_llvm_emit_prepare_cube_coords(bld_base, &emit_data->args[0],
                                                      inst->Texture.Texture);
        }