diff options
author | Dave Airlie <[email protected]> | 2017-06-06 09:03:55 +1000 |
---|---|---|
committer | Dave Airlie <[email protected]> | 2017-06-06 09:43:45 +1000 |
commit | 67655cb24fbd0d9dbacfb7c1059e21751b6c10eb (patch) | |
tree | 8c1854e4013d75140601d589c1a8c1a6250b5360 /src/amd/vulkan/radv_meta_clear.c | |
parent | c2fbeb7ca057b3bee8c8cd0f7076af2b90d28111 (diff) |
radv: add rb+ support for GFX9
This adds some rb+ support, as on GFX9 we have to disable
it as per radeonsi.
Reviewed-by: Bas Nieuwenhuizen <[email protected]>
Signed-off-by: Dave Airlie <[email protected]>
Diffstat (limited to 'src/amd/vulkan/radv_meta_clear.c')
-rw-r--r-- | src/amd/vulkan/radv_meta_clear.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/amd/vulkan/radv_meta_clear.c b/src/amd/vulkan/radv_meta_clear.c index 66b77f406dc..f4cb78763f1 100644 --- a/src/amd/vulkan/radv_meta_clear.c +++ b/src/amd/vulkan/radv_meta_clear.c @@ -915,6 +915,11 @@ emit_fast_color_clear(struct radv_cmd_buffer *cmd_buffer, if (clear_rect->layerCount != iview->image->info.array_size) goto fail; + /* RB+ doesn't work with CMASK fast clear on Stoney. */ + if (!iview->image->surface.dcc_size && + cmd_buffer->device->physical_device->rad_info.family == CHIP_STONEY) + goto fail; + /* DCC */ ret = radv_format_pack_clear_color(iview->image->vk_format, clear_color, &clear_value); |