Commit e00f6a06 authored by Mike Blumenkrantz's avatar Mike Blumenkrantz 🏋 Committed by Kenneth Graunke

st/mesa: indicate intel extension support for inner_coverage based on cap

if the driver (iris) indicates support for the inner_coverage pipe cap, this
will set the necessary states in the driver flags and rasterizer structs
Reviewed-by: default avatarMarek Olšák <marek.olsak@amd.com>
Reviewed-by: Kenneth Graunke's avatarKenneth Graunke <kenneth@whitecape.org>
parent 1b9041c7
......@@ -306,6 +306,8 @@ st_update_rasterizer(struct st_context *st)
raster->conservative_raster_mode = PIPE_CONSERVATIVE_RASTER_POST_SNAP;
else
raster->conservative_raster_mode = PIPE_CONSERVATIVE_RASTER_PRE_SNAP;
} else if (ctx->IntelConservativeRasterization) {
raster->conservative_raster_mode = PIPE_CONSERVATIVE_RASTER_POST_SNAP;
} else {
raster->conservative_raster_mode = PIPE_CONSERVATIVE_RASTER_OFF;
}
......
......@@ -513,6 +513,7 @@ st_init_driver_flags(struct st_context *st)
f->NewViewport = ST_NEW_VIEWPORT;
f->NewNvConservativeRasterization = ST_NEW_RASTERIZER;
f->NewNvConservativeRasterizationParams = ST_NEW_RASTERIZER;
f->NewIntelConservativeRasterization = ST_NEW_RASTERIZER;
}
......
......@@ -772,6 +772,7 @@ void st_init_extensions(struct pipe_screen *screen,
{ o(ATI_meminfo), PIPE_CAP_QUERY_MEMORY_INFO },
{ o(AMD_seamless_cubemap_per_texture), PIPE_CAP_SEAMLESS_CUBE_MAP_PER_TEXTURE },
{ o(ATI_texture_mirror_once), PIPE_CAP_TEXTURE_MIRROR_CLAMP },
{ o(INTEL_conservative_rasterization), PIPE_CAP_CONSERVATIVE_RASTER_INNER_COVERAGE },
{ o(MESA_tile_raster_order), PIPE_CAP_TILE_RASTER_ORDER },
{ o(NV_compute_shader_derivatives), PIPE_CAP_COMPUTE_SHADER_DERIVATIVES },
{ o(NV_conditional_render), PIPE_CAP_CONDITIONAL_RENDER },
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment