OSDN Git Service

st/nir: Lower sampler derefs for builtin shaders.
authorKenneth Graunke <kenneth@whitecape.org>
Wed, 6 Feb 2019 08:06:33 +0000 (00:06 -0800)
committerKenneth Graunke <kenneth@whitecape.org>
Tue, 12 Feb 2019 05:34:36 +0000 (21:34 -0800)
Reviewed-by: Eric Anholt <eric@anholt.net>
src/mesa/state_tracker/st_nir_builtins.c

index 7574ce3..18dc209 100644 (file)
@@ -61,6 +61,8 @@ st_nir_finish_builtin_shader(struct st_context *st,
 
    st_nir_assign_varying_locations(st, nir);
 
+   st_nir_lower_samplers(screen, nir, NULL);
+
    if (st->ctx->Const.PackedDriverUniformStorage) {
       NIR_PASS_V(nir, nir_lower_io, nir_var_uniform, st_glsl_type_dword_size,
                  (nir_lower_io_options)0);