mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 11:48:06 +02:00
panvk: lower drawid to zero
We only implement single-draw direct and indirect draws, so this is sufficient. We'll revisit this when we get around to implementing multidraw. Reviewed-by: Boris Brezillon <boris.brezillon@collabora.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/32039>
This commit is contained in:
parent
1570f0172e
commit
9b3bc9def2
1 changed files with 8 additions and 0 deletions
|
|
@ -129,6 +129,14 @@ panvk_lower_sysvals(nir_builder *b, nir_instr *instr, void *data)
|
|||
break;
|
||||
#endif
|
||||
|
||||
case nir_intrinsic_load_draw_id:
|
||||
/* TODO: We only implement single-draw direct and indirect draws, so this
|
||||
* is sufficient. We'll revisit this when we get around to implementing
|
||||
* multidraw. */
|
||||
assert(b->shader->info.stage == MESA_SHADER_VERTEX);
|
||||
val = nir_imm_int(b, 0);
|
||||
break;
|
||||
|
||||
default:
|
||||
return false;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue