intel/fs: Implement nir_intrinsic_load_global_constant
authorJason Ekstrand <jason@jlekstrand.net>
Sat, 29 Aug 2020 06:00:37 +0000 (01:00 -0500)
committerMarge Bot <eric+marge@anholt.net>
Tue, 1 Sep 2020 20:50:04 +0000 (20:50 +0000)
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/6379>

src/intel/compiler/brw_fs_nir.cpp

index 857ee8ed4b99393a7f191740ffa7615e7899b335..99cb0e720f289b1a07dff02976178d7849b8912d 100644 (file)
@@ -4554,7 +4554,8 @@ fs_visitor::nir_emit_intrinsic(const fs_builder &bld, nir_intrinsic_instr *instr
       break;
    }
 
-   case nir_intrinsic_load_global: {
+   case nir_intrinsic_load_global:
+   case nir_intrinsic_load_global_constant: {
       assert(devinfo->gen >= 8);
 
       assert(nir_dest_bit_size(instr->dest) <= 32);