瀏覽代碼

freedreno/ir3: use saml always if we have lod

In some cases we get plain tex opcodes (but w/ a lod argument).. in this
case always use the saml instruction.

Signed-off-by: Rob Clark <robdclark@gmail.com>
tags/18.2-branchpoint
Rob Clark 7 年之前
父節點
當前提交
132e5b0b34
共有 1 個檔案被更改,包括 1 行新增1 行删除
  1. 1
    1
      src/gallium/drivers/freedreno/ir3/ir3_compiler_nir.c

+ 1
- 1
src/gallium/drivers/freedreno/ir3/ir3_compiler_nir.c 查看文件

@@ -2585,7 +2585,7 @@ emit_tex(struct ir3_context *ctx, nir_tex_instr *tex)
}

switch (tex->op) {
case nir_texop_tex: opc = OPC_SAM; break;
case nir_texop_tex: opc = has_lod ? OPC_SAML : OPC_SAM; break;
case nir_texop_txb: opc = OPC_SAMB; break;
case nir_texop_txl: opc = OPC_SAML; break;
case nir_texop_txd: opc = OPC_SAMGQ; break;

Loading…
取消
儲存