mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-24 17:30:12 +01:00
intel/compiler: Use nir's info when checking uses_streams.
Vulkan and Gallium don't use Mesa's gl_program data structure, so they can't poke at 'prog'. But we can simply use the copy of the shader info stored with the NIR shader, which is guaranteed to exist. Reviewed-by: Jason Ekstrand <jason@jlekstrand.net> Reviewed-by: Iago Toral Quiroga <itoral@igalia.com>
This commit is contained in:
parent
199a0353d6
commit
f11780779f
1 changed files with 1 additions and 1 deletions
|
|
@ -667,7 +667,7 @@ brw_compile_gs(const struct brw_compiler *compiler, void *log_data,
|
|||
prog_data->control_data_format = GEN7_GS_CONTROL_DATA_FORMAT_GSCTL_SID;
|
||||
|
||||
/* We only have to emit control bits if we are using streams */
|
||||
if (prog && prog->info.gs.uses_streams)
|
||||
if (shader->info.gs.uses_streams)
|
||||
c.control_data_bits_per_vertex = 2;
|
||||
else
|
||||
c.control_data_bits_per_vertex = 0;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue