diff --git a/src/intel/vulkan/anv_image.c b/src/intel/vulkan/anv_image.c index 97a7553cd6b..1ad42e85f1c 100644 --- a/src/intel/vulkan/anv_image.c +++ b/src/intel/vulkan/anv_image.c @@ -2497,7 +2497,10 @@ anv_image_fill_surface_state(struct anv_device *device, .mocs = anv_mocs(device, state_inout->address.bo, view_usage), .x_offset_sa = tile_x_sa, - .y_offset_sa = tile_y_sa); + .y_offset_sa = tile_y_sa, + .robust_image_access = + device->vk.enabled_features.robustImageAccess || + device->vk.enabled_features.robustImageAccess2); /* With the exception of gfx8, the bottom 12 bits of the MCS base address * are used to store other information. This should be ok, however, diff --git a/src/intel/vulkan/anv_pipeline.c b/src/intel/vulkan/anv_pipeline.c index 6d77168535f..70ba8fe1058 100644 --- a/src/intel/vulkan/anv_pipeline.c +++ b/src/intel/vulkan/anv_pipeline.c @@ -224,6 +224,9 @@ anv_shader_stage_to_nir(struct anv_device *device, struct brw_nir_compiler_opts opts = { .softfp64 = device->fp64_nir, + .robust_image_access = + device->vk.enabled_features.robustImageAccess || + device->vk.enabled_features.robustImageAccess2, }; brw_preprocess_nir(compiler, nir, &opts);