radv: replace == GFX10 with >= GFX10 where it's needed

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/5389>
This commit is contained in:
Samuel Pitoiset
2020-06-08 18:38:57 +02:00
parent 1f87106276
commit 3c28438094
2 changed files with 3 additions and 3 deletions

View File

@@ -98,7 +98,7 @@ radv_use_tc_compat_htile_for_image(struct radv_device *device,
if (pCreateInfo->samples >= 2 && if (pCreateInfo->samples >= 2 &&
(format == VK_FORMAT_D32_SFLOAT_S8_UINT || (format == VK_FORMAT_D32_SFLOAT_S8_UINT ||
(format == VK_FORMAT_D32_SFLOAT && (format == VK_FORMAT_D32_SFLOAT &&
device->physical_device->rad_info.chip_class == GFX10))) device->physical_device->rad_info.chip_class >= GFX10)))
return false; return false;
/* GFX9 supports both 32-bit and 16-bit depth surfaces, while GFX8 only /* GFX9 supports both 32-bit and 16-bit depth surfaces, while GFX8 only

View File

@@ -1271,7 +1271,7 @@ handle_vs_input_decl(struct radv_shader_context *ctx,
* access are detected. Only GFX6 and GFX10 are affected. * access are detected. Only GFX6 and GFX10 are affected.
*/ */
bool unaligned_vertex_fetches = false; bool unaligned_vertex_fetches = false;
if ((ctx->ac.chip_class == GFX6 || ctx->ac.chip_class == GFX10) && if ((ctx->ac.chip_class == GFX6 || ctx->ac.chip_class >= GFX10) &&
vtx_info->chan_format != data_format && vtx_info->chan_format != data_format &&
((attrib_offset % vtx_info->element_size) || ((attrib_offset % vtx_info->element_size) ||
(attrib_stride % vtx_info->element_size))) (attrib_stride % vtx_info->element_size)))
@@ -1282,7 +1282,7 @@ handle_vs_input_decl(struct radv_shader_context *ctx,
LLVMValueRef values[4]; LLVMValueRef values[4];
assert(ctx->ac.chip_class == GFX6 || assert(ctx->ac.chip_class == GFX6 ||
ctx->ac.chip_class == GFX10); ctx->ac.chip_class >= GFX10);
for (unsigned chan = 0; chan < num_channels; chan++) { for (unsigned chan = 0; chan < num_channels; chan++) {
unsigned chan_offset = attrib_offset + chan * vtx_info->chan_byte_size; unsigned chan_offset = attrib_offset + chan * vtx_info->chan_byte_size;