mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 22:38:05 +02:00
panfrost: Set reads_frag_coord as a sysval
In addition to parsing out the varying. This is needed so it works on Bifrost as well. Signed-off-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5267>
This commit is contained in:
parent
52875a34aa
commit
1d194f8ac4
1 changed files with 3 additions and 0 deletions
|
|
@ -177,6 +177,9 @@ panfrost_shader_compile(struct panfrost_context *ctx,
|
|||
bool vertex_id = s->info.system_values_read & (1 << SYSTEM_VALUE_VERTEX_ID);
|
||||
bool instance_id = s->info.system_values_read & (1 << SYSTEM_VALUE_INSTANCE_ID);
|
||||
|
||||
/* On Bifrost it's a sysval, on Midgard it's a varying */
|
||||
state->reads_frag_coord = s->info.system_values_read & (1 << SYSTEM_VALUE_FRAG_COORD);
|
||||
|
||||
switch (stage) {
|
||||
case MESA_SHADER_VERTEX:
|
||||
state->attribute_count = util_bitcount64(s->info.inputs_read);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue