diff --git a/src/gallium/drivers/iris/iris_screen.c b/src/gallium/drivers/iris/iris_screen.c index 985eecf6798..4d615f631d1 100644 --- a/src/gallium/drivers/iris/iris_screen.c +++ b/src/gallium/drivers/iris/iris_screen.c @@ -805,6 +805,7 @@ iris_screen_create(int fd, const struct pipe_screen_config *config) screen->compiler->supports_pull_constants = false; screen->compiler->supports_shader_constants = true; screen->compiler->compact_params = false; + screen->compiler->indirect_ubos_use_sampler = screen->devinfo.gen < 12; screen->l3_config_3d = iris_get_default_l3_config(&screen->devinfo, false); screen->l3_config_cs = iris_get_default_l3_config(&screen->devinfo, true); diff --git a/src/intel/vulkan/anv_device.c b/src/intel/vulkan/anv_device.c index c4e932cc4f4..893713ea094 100644 --- a/src/intel/vulkan/anv_device.c +++ b/src/intel/vulkan/anv_device.c @@ -513,7 +513,7 @@ anv_physical_device_try_create(struct anv_instance *instance, device->info.gen < 8 || !device->has_context_isolation; device->compiler->supports_shader_constants = true; device->compiler->compact_params = false; - device->compiler->indirect_ubos_use_sampler = true; + device->compiler->indirect_ubos_use_sampler = device->info.gen < 12; /* Broadwell PRM says: *