i965/fs: remove setting default LOD in the backend
authorSamuel Iglesias Gonsálvez <siglesias@igalia.com>
Mon, 9 Oct 2017 10:24:39 +0000 (12:24 +0200)
committerSamuel Iglesias Gonsálvez <siglesias@igalia.com>
Fri, 20 Oct 2017 06:29:53 +0000 (08:29 +0200)
It is already done in NIR.

Signed-off-by: Samuel Iglesias Gonsálvez <siglesias@igalia.com>
Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
src/intel/compiler/brw_fs_nir.cpp

index 7ed44f5..cc09884 100644 (file)
@@ -4536,15 +4536,6 @@ fs_visitor::nir_emit_texture(const fs_builder &bld, nir_tex_instr *instr)
       unreachable("unknown texture opcode");
    }
 
-   /* TXS and TXL require a LOD but not everything we implement using those
-    * two opcodes provides one.  Provide a default LOD of 0.
-    */
-   if ((opcode == SHADER_OPCODE_TXS_LOGICAL ||
-        opcode == SHADER_OPCODE_TXL_LOGICAL) &&
-       srcs[TEX_LOGICAL_SRC_LOD].file == BAD_FILE) {
-      srcs[TEX_LOGICAL_SRC_LOD] = brw_imm_ud(0u);
-   }
-
    if (instr->op == nir_texop_tg4) {
       if (instr->component == 1 &&
           key_tex->gather_channel_quirk_mask & (1 << texture)) {