st/mesa: use common patch inputs read field
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
This commit is contained in:
parent
fdf42d3abc
commit
3d2a503998
|
@ -6507,7 +6507,7 @@ get_mesa_program_tgsi(struct gl_context *ctx,
|
|||
shrink_array_declarations(v->inputs, v->num_inputs,
|
||||
&prog->info.inputs_read,
|
||||
prog->info.double_inputs_read,
|
||||
&prog->PatchInputsRead);
|
||||
&prog->info.patch_inputs_read);
|
||||
shrink_array_declarations(v->outputs, v->num_outputs,
|
||||
&prog->info.outputs_written, 0ULL,
|
||||
&prog->PatchOutputsWritten);
|
||||
|
|
|
@ -1303,7 +1303,7 @@ st_translate_program_common(struct st_context *st,
|
|||
|
||||
/* Also add patch inputs. */
|
||||
for (attr = 0; attr < 32; attr++) {
|
||||
if (prog->PatchInputsRead & (1u << attr)) {
|
||||
if (prog->info.patch_inputs_read & (1u << attr)) {
|
||||
GLuint slot = num_inputs++;
|
||||
GLuint patch_attr = VARYING_SLOT_PATCH0 + attr;
|
||||
|
||||
|
|
Loading…
Reference in New Issue