mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-11 06:28:09 +02:00
glsl: only explicitly check GS components in PSIZ injection with output variables
if no output variables exist then there's plenty of room for a psiz
cc: mesa-stable
Reviewed-by: Dave Airlie <airlied@redhat.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/24182>
(cherry picked from commit b398036c73)
This commit is contained in:
parent
cd539c327c
commit
5c49c20fe5
2 changed files with 2 additions and 2 deletions
|
|
@ -21314,7 +21314,7 @@
|
|||
"description": "glsl: only explicitly check GS components in PSIZ injection with output variables",
|
||||
"nominated": true,
|
||||
"nomination_type": 0,
|
||||
"resolution": 0,
|
||||
"resolution": 1,
|
||||
"main_sha": null,
|
||||
"because_sha": null,
|
||||
"notes": null
|
||||
|
|
|
|||
|
|
@ -151,7 +151,7 @@ gl_nir_can_add_pointsize_to_program(const struct gl_constants *consts,
|
|||
}
|
||||
|
||||
/* Ensure that there is enough attribute space to emit at least one primitive */
|
||||
if (nir->info.stage == MESA_SHADER_GEOMETRY) {
|
||||
if (num_components && nir->info.stage == MESA_SHADER_GEOMETRY) {
|
||||
if (num_components + needed_components > consts->Program[nir->info.stage].MaxOutputComponents)
|
||||
return false;
|
||||
num_components *= nir->info.gs.vertices_out;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue