turnip: Add "rast_order" debug option to force rast order access

Enables rasterization order attachment access for all pipelines,
see VK_ARM_rasterization_order_attachment_access for details.

Signed-off-by: Danylo Piliaiev <dpiliaiev@igalia.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/15262>
This commit is contained in:
Danylo Piliaiev 2022-03-07 12:13:45 +02:00 committed by Marge Bot
parent 52ceb9dcb6
commit e2fc99b188
3 changed files with 5 additions and 0 deletions

View File

@ -336,6 +336,7 @@ static const struct debug_control tu_debug_options[] = {
{ "flushall", TU_DEBUG_FLUSHALL },
{ "syncdraw", TU_DEBUG_SYNCDRAW },
{ "dontcare_as_load", TU_DEBUG_DONT_CARE_AS_LOAD },
{ "rast_order", TU_DEBUG_RAST_ORDER },
{ NULL, 0 }
};

View File

@ -3181,6 +3181,9 @@ tu_pipeline_builder_parse_rasterization_order(
VK_PIPELINE_DEPTH_STENCIL_STATE_CREATE_RASTERIZATION_ORDER_ATTACHMENT_STENCIL_ACCESS_BIT_ARM);
}
if (unlikely(builder->device->physical_device->instance->debug_flags & TU_DEBUG_RAST_ORDER))
pipeline->raster_order_attachment_access = true;
/* VK_EXT_blend_operation_advanced would also require ordered access
* when implemented in the future.
*/

View File

@ -261,6 +261,7 @@ enum tu_debug_flags
TU_DEBUG_SYNCDRAW = 1 << 11,
TU_DEBUG_DONT_CARE_AS_LOAD = 1 << 12,
TU_DEBUG_GMEM = 1 << 13,
TU_DEBUG_RAST_ORDER = 1 << 14,
};
struct tu_instance