mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 11:48:06 +02:00
radv: reword a comment about dynamic states when rasterization is disabled
Make it more generic instead of listing all states. Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com> Reviewed-by: Timur Kristóf <timur.kristof@gmail.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/18344>
This commit is contained in:
parent
3454ff21e5
commit
9a67edaa56
1 changed files with 1 additions and 5 deletions
|
|
@ -1367,11 +1367,7 @@ radv_pipeline_needed_dynamic_state(const struct radv_graphics_pipeline *pipeline
|
|||
RADV_DYNAMIC_PRIMITIVE_RESTART_ENABLE | RADV_DYNAMIC_PRIMITIVE_TOPOLOGY);
|
||||
}
|
||||
|
||||
/* If rasterization is disabled we do not care about any of the
|
||||
* dynamic states, since they are all rasterization related only,
|
||||
* except primitive topology, primitive restart enable, vertex
|
||||
* binding stride and rasterization discard itself.
|
||||
*/
|
||||
/* Disable dynamic states that are useless when rasterization is disabled. */
|
||||
if (!raster_enabled) {
|
||||
return RADV_DYNAMIC_PRIMITIVE_TOPOLOGY | RADV_DYNAMIC_VERTEX_INPUT_BINDING_STRIDE |
|
||||
RADV_DYNAMIC_PRIMITIVE_RESTART_ENABLE | RADV_DYNAMIC_RASTERIZER_DISCARD_ENABLE |
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue