diff options
author | Rob Clark <[email protected]> | 2019-04-26 10:05:08 -0700 |
---|---|---|
committer | Rob Clark <[email protected]> | 2019-05-02 11:19:22 -0700 |
commit | a99c360a463019a4aca9b551bd79c9c84f297468 (patch) | |
tree | 801629db49799e8cb525fa1b4da5b5b5d0c8652e /src/compiler/nir/nir_print.c | |
parent | a2c89a85f4f69b5eacc8052d6cc4f4efd07a1294 (diff) |
nir: add pass to lower fb reads
Signed-off-by: Rob Clark <[email protected]>
Reviewed-by: Kristian H. Kristensen <[email protected]>
Diffstat (limited to 'src/compiler/nir/nir_print.c')
-rw-r--r-- | src/compiler/nir/nir_print.c | 15 |
1 files changed, 10 insertions, 5 deletions
diff --git a/src/compiler/nir/nir_print.c b/src/compiler/nir/nir_print.c index be36469fecb..46995766974 100644 --- a/src/compiler/nir/nir_print.c +++ b/src/compiler/nir/nir_print.c @@ -883,6 +883,9 @@ print_tex_instr(nir_tex_instr *instr, print_state *state) case nir_texop_txf_ms: fprintf(fp, "txf_ms "); break; + case nir_texop_txf_ms_fb: + fprintf(fp, "txf_ms_fb "); + break; case nir_texop_txf_ms_mcs: fprintf(fp, "txf_ms_mcs "); break; @@ -995,12 +998,14 @@ print_tex_instr(nir_tex_instr *instr, print_state *state) fprintf(fp, " } (offsets)"); } - if (!has_texture_deref) { - fprintf(fp, ", %u (texture)", instr->texture_index); - } + if (instr->op != nir_texop_txf_ms_fb) { + if (!has_texture_deref) { + fprintf(fp, ", %u (texture)", instr->texture_index); + } - if (!has_sampler_deref) { - fprintf(fp, ", %u (sampler)", instr->sampler_index); + if (!has_sampler_deref) { + fprintf(fp, ", %u (sampler)", instr->sampler_index); + } } } |