glsl: set patch inputs read directly in shader_info
Reviewed-by: Jason Ekstrand <jason@jlekstrand.net>
This commit is contained in:
@@ -111,7 +111,7 @@ mark(struct gl_program *prog, ir_variable *var, int offset, int len,
|
||||
|
||||
if (var->data.mode == ir_var_shader_in) {
|
||||
if (is_patch_generic)
|
||||
prog->PatchInputsRead |= bitfield;
|
||||
prog->info.patch_inputs_read |= bitfield;
|
||||
else
|
||||
prog->info.inputs_read |= bitfield;
|
||||
|
||||
@@ -430,7 +430,7 @@ do_set_program_inouts(exec_list *instructions, struct gl_program *prog,
|
||||
prog->info.outputs_written = 0;
|
||||
prog->SecondaryOutputsWritten = 0;
|
||||
prog->info.outputs_read = 0;
|
||||
prog->PatchInputsRead = 0;
|
||||
prog->info.patch_inputs_read = 0;
|
||||
prog->PatchOutputsWritten = 0;
|
||||
prog->SystemValuesRead = 0;
|
||||
if (shader_stage == MESA_SHADER_FRAGMENT) {
|
||||
|
@@ -30,7 +30,6 @@ copy_shader_info(const struct gl_shader_program *shader_prog,
|
||||
{
|
||||
shader_info *info = &sh->Program->info;
|
||||
|
||||
info->patch_inputs_read = sh->Program->PatchInputsRead;
|
||||
info->patch_outputs_written = sh->Program->PatchOutputsWritten;
|
||||
info->system_values_read = sh->Program->SystemValuesRead;
|
||||
info->uses_texture_gather = sh->Program->UsesGather;
|
||||
|
Reference in New Issue
Block a user