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:
Boris Brezillon 2021-03-05 13:22:27 +01:00 committed by Marge Bot
parent 7b9dfc502a
commit b0f968cf5c

View file

@ -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 =