freedreno/ir3: fix compile warn after 1807a08e
authorRob Clark <robclark@freedesktop.org>
Sun, 13 Sep 2015 15:22:51 +0000 (11:22 -0400)
committerRob Clark <robclark@freedesktop.org>
Sun, 13 Sep 2015 15:31:45 +0000 (11:31 -0400)
New enum to add to switch so compiler doesn't complain.

   commit 1807a08e4f35b014f2a80d1e88dd74a9f096d7a5
   Author:     Ilia Mirkin <imirkin@alum.mit.edu>
   AuthorDate: Thu Aug 27 23:05:03 2015 -0400
   Commit:     Ilia Mirkin <imirkin@alum.mit.edu>
   CommitDate: Thu Sep 10 17:38:33 2015 -0400

       nir: add nir_texop_texture_samples and convert from glsl

Signed-off-by: Rob Clark <robclark@freedesktop.org>
src/gallium/drivers/freedreno/ir3/ir3_compiler_nir.c

index 071901a3cc7e5aa43940c3dc204b95035efd00d0..5a069fb5378796f36b3b023f0fe502d45b489f01 100644 (file)
@@ -1623,6 +1623,7 @@ emit_tex(struct ir3_compile *ctx, nir_tex_instr *tex)
        case nir_texop_lod:
        case nir_texop_tg4:
        case nir_texop_query_levels:
+       case nir_texop_texture_samples:
                compile_error(ctx, "Unhandled NIR tex type: %d\n", tex->op);
                return;
        }