ac: add ac_gpu_info::has_image_load_dcc_bug

Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Reviewed-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/9919>
This commit is contained in:
Samuel Pitoiset
2021-03-24 17:56:27 +01:00
committed by Marge Bot
parent e4ef5f0433
commit ec611beae2
3 changed files with 10 additions and 0 deletions
+6
View File
@@ -806,6 +806,12 @@ bool ac_query_gpu_info(int fd, void *dev_p, struct radeon_info *info,
/* Drawing from 0-sized index buffers causes hangs on Navi10/14. */
info->has_zero_index_buffer_bug = info->family == CHIP_NAVI10 || info->family == CHIP_NAVI14;
/* Whether chips are affected by the image load/sample/gather hw bug when
* DCC is enabled (ie. WRITE_COMPRESS_ENABLE should be 0).
*/
info->has_image_load_dcc_bug = info->family == CHIP_DIMGREY_CAVEFISH ||
info->family == CHIP_VANGOGH;
/* Support for GFX10.3 was added with F32_ME_FEATURE_VERSION_31 but the
* firmware version wasn't bumped.
*/
+1
View File
@@ -76,6 +76,7 @@ struct radeon_info {
bool has_msaa_sample_loc_bug;
bool has_ls_vgpr_init_bug;
bool has_zero_index_buffer_bug;
bool has_image_load_dcc_bug;
bool has_32bit_predication;
bool has_3d_cube_border_color_mipmap;
@@ -133,6 +133,9 @@ static void radv_null_winsys_query_info(struct radeon_winsys *rws,
info->has_dedicated_vram = gpu_info[info->family].has_dedicated_vram;
info->has_packed_math_16bit = info->chip_class >= GFX9;
info->has_image_load_dcc_bug = info->family == CHIP_DIMGREY_CAVEFISH ||
info->family == CHIP_VANGOGH;
}
static void radv_null_winsys_destroy(struct radeon_winsys *rws)