mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-04 22:49:13 +02:00
panfrost: Don't count the special vertex/instance ID attributes on Bifrost
On Bifrost the vertex/instance ID are preloaded in special registers, no need to add special attribute entries. Signed-off-by: Boris Brezillon <boris.brezillon@collabora.com> Reviewed-by: Alyssa Rosenzweig <alyssa@collabora.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/9517>
This commit is contained in:
parent
7b9dfc502a
commit
b0f968cf5c
1 changed files with 2 additions and 2 deletions
|
|
@ -156,12 +156,12 @@ pan_shader_compile(const struct panfrost_device *dev,
|
|||
|
||||
bool vertex_id = BITSET_TEST(s->info.system_values_read,
|
||||
SYSTEM_VALUE_VERTEX_ID);
|
||||
if (vertex_id)
|
||||
if (vertex_id && !pan_is_bifrost(dev))
|
||||
info->attribute_count = MAX2(info->attribute_count, PAN_VERTEX_ID + 1);
|
||||
|
||||
bool instance_id = BITSET_TEST(s->info.system_values_read,
|
||||
SYSTEM_VALUE_INSTANCE_ID);
|
||||
if (instance_id)
|
||||
if (instance_id && !pan_is_bifrost(dev))
|
||||
info->attribute_count = MAX2(info->attribute_count, PAN_INSTANCE_ID + 1);
|
||||
|
||||
info->vs.writes_point_size =
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue