anv: disable Wa_1806565034 when robustImageAccess is enabled

Signed-off-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Cc: mesa-stable
Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/5711
Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/7859
Reviewed-by: Ivan Briano <ivan.briano@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/20280>
This commit is contained in:
Lionel Landwerlin
2022-12-12 15:32:22 +02:00
committed by Marge Bot
parent 94bb4a13fa
commit a921486e2a
2 changed files with 7 additions and 1 deletions
+4 -1
View File
@@ -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,
+3
View File
@@ -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);