mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-04-28 02:10:37 +02:00
tu: Promote VK_EXT_line_rasterization to KHR
Signed-off-by: Valentine Burley <valentine.burley@gmail.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/28052>
This commit is contained in:
parent
465ff8114c
commit
fbd3269756
3 changed files with 5 additions and 4 deletions
|
|
@ -840,7 +840,7 @@ tu6_update_msaa_disable(struct tu_cmd_buffer *cmd)
|
|||
cmd->state.shaders[MESA_SHADER_TESS_EVAL]->variant &&
|
||||
cmd->state.shaders[MESA_SHADER_TESS_EVAL]->variant->key.tessellation == IR3_TESS_ISOLINES);
|
||||
bool msaa_disable = is_line &&
|
||||
cmd->vk.dynamic_graphics_state.rs.line.mode == VK_LINE_RASTERIZATION_MODE_BRESENHAM_EXT;
|
||||
cmd->vk.dynamic_graphics_state.rs.line.mode == VK_LINE_RASTERIZATION_MODE_BRESENHAM_KHR;
|
||||
|
||||
if (cmd->state.msaa_disable != msaa_disable) {
|
||||
cmd->state.msaa_disable = msaa_disable;
|
||||
|
|
|
|||
|
|
@ -165,6 +165,7 @@ get_device_extensions(const struct tu_physical_device *device,
|
|||
.KHR_imageless_framebuffer = true,
|
||||
.KHR_incremental_present = TU_HAS_SURFACE,
|
||||
.KHR_index_type_uint8 = true,
|
||||
.KHR_line_rasterization = true,
|
||||
.KHR_load_store_op_none = true,
|
||||
.KHR_maintenance1 = true,
|
||||
.KHR_maintenance2 = true,
|
||||
|
|
@ -513,7 +514,7 @@ tu_get_features(struct tu_physical_device *pdevice,
|
|||
/* VK_EXT_mutable_descriptor_type */
|
||||
features->mutableDescriptorType = true;
|
||||
|
||||
/* VK_EXT_line_rasterization */
|
||||
/* VK_KHR_line_rasterization */
|
||||
features->rectangularLines = true;
|
||||
features->bresenhamLines = true;
|
||||
features->smoothLines = false;
|
||||
|
|
@ -977,7 +978,7 @@ tu_get_properties(struct tu_physical_device *pdevice,
|
|||
props->provokingVertexModePerPipeline = true;
|
||||
props->transformFeedbackPreservesTriangleFanProvokingVertex = false;
|
||||
|
||||
/* VK_EXT_line_rasterization */
|
||||
/* VK_KHR_line_rasterization */
|
||||
props->lineSubPixelPrecisionBits = 8;
|
||||
|
||||
/* VK_EXT_physical_device_drm */
|
||||
|
|
|
|||
|
|
@ -3016,7 +3016,7 @@ tu6_emit_rast(struct tu_cs *cs,
|
|||
bool per_view_viewport)
|
||||
{
|
||||
enum a5xx_line_mode line_mode =
|
||||
rs->line.mode == VK_LINE_RASTERIZATION_MODE_BRESENHAM_EXT ?
|
||||
rs->line.mode == VK_LINE_RASTERIZATION_MODE_BRESENHAM_KHR ?
|
||||
BRESENHAM : RECTANGULAR;
|
||||
tu_cs_emit_regs(cs,
|
||||
A6XX_GRAS_SU_CNTL(
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue