mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-27 08:20:12 +01:00
radv: Enable fast clears by default.
Works for me on dota2 and talos now. Signed-off-by: Bas Nieuwenhuizen <basni@google.com> Reviewed-by: Dave Airlie <airlied@redhat.com> Reviewed-by: Andres Rodriguez <andresx7@gmail.com>
This commit is contained in:
parent
1de3cd8a34
commit
0d1283850b
3 changed files with 4 additions and 4 deletions
|
|
@ -294,7 +294,7 @@ static const VkAllocationCallbacks default_alloc = {
|
|||
};
|
||||
|
||||
static const struct debug_control radv_debug_options[] = {
|
||||
{"fastclears", RADV_DEBUG_FAST_CLEARS},
|
||||
{"nofastclears", RADV_DEBUG_NO_FAST_CLEARS},
|
||||
{"nodcc", RADV_DEBUG_NO_DCC},
|
||||
{"shaders", RADV_DEBUG_DUMP_SHADERS},
|
||||
{"nocache", RADV_DEBUG_NO_CACHE},
|
||||
|
|
@ -2157,7 +2157,7 @@ radv_initialise_color_surface(struct radv_device *device,
|
|||
cb->cb_color_info |= S_028C70_COMPRESSION(1);
|
||||
|
||||
if (iview->image->cmask.size &&
|
||||
(device->debug_flags & RADV_DEBUG_FAST_CLEARS))
|
||||
!(device->debug_flags & RADV_DEBUG_NO_FAST_CLEARS))
|
||||
cb->cb_color_info |= S_028C70_FAST_CLEAR(1);
|
||||
|
||||
if (iview->image->surface.dcc_size && level_info->dcc_enabled)
|
||||
|
|
|
|||
|
|
@ -841,7 +841,7 @@ emit_fast_color_clear(struct radv_cmd_buffer *cmd_buffer,
|
|||
if (!iview->image->cmask.size && !iview->image->surface.dcc_size)
|
||||
return false;
|
||||
|
||||
if (!(cmd_buffer->device->debug_flags & RADV_DEBUG_FAST_CLEARS))
|
||||
if (cmd_buffer->device->debug_flags & RADV_DEBUG_NO_FAST_CLEARS)
|
||||
return false;
|
||||
|
||||
if (!radv_layout_can_fast_clear(iview->image, image_layout, radv_image_queue_family_mask(iview->image, cmd_buffer->queue_family_index, cmd_buffer->queue_family_index)))
|
||||
|
|
|
|||
|
|
@ -102,7 +102,7 @@ enum radv_mem_type {
|
|||
|
||||
|
||||
enum {
|
||||
RADV_DEBUG_FAST_CLEARS = 0x1,
|
||||
RADV_DEBUG_NO_FAST_CLEARS = 0x1,
|
||||
RADV_DEBUG_NO_DCC = 0x2,
|
||||
RADV_DEBUG_DUMP_SHADERS = 0x4,
|
||||
RADV_DEBUG_NO_CACHE = 0x8,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue