X-Git-Url: https://git.libre-soc.org/?a=blobdiff_plain;f=src%2Fcompiler%2Fglsl%2Fir_set_program_inouts.cpp;h=a3cb19479b8a2c7985f261c11eabda1ec59bc1a7;hb=9414cbc13c964b567a15637eaa7dc32899391594;hp=9a33d56d8814e73c9b4717659f6ce030d288b8bd;hpb=5346630593bec80efa732c40b63e0e95a00af074;p=mesa.git diff --git a/src/compiler/glsl/ir_set_program_inouts.cpp b/src/compiler/glsl/ir_set_program_inouts.cpp index 9a33d56d881..a3cb19479b8 100644 --- a/src/compiler/glsl/ir_set_program_inouts.cpp +++ b/src/compiler/glsl/ir_set_program_inouts.cpp @@ -34,10 +34,10 @@ * from the GLSL IR. */ -#include "main/core.h" /* for struct gl_program */ #include "ir.h" #include "ir_visitor.h" #include "compiler/glsl_types.h" +#include "main/mtypes.h" namespace { @@ -111,24 +111,24 @@ 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; /* double inputs read is only for vertex inputs */ if (stage == MESA_SHADER_VERTEX && var->type->without_array()->is_dual_slot()) - prog->info.double_inputs_read |= bitfield; + prog->DualSlotInputs |= bitfield; if (stage == MESA_SHADER_FRAGMENT) { prog->info.fs.uses_sample_qualifier |= var->data.sample; } } else if (var->data.mode == ir_var_system_value) { - prog->SystemValuesRead |= bitfield; + prog->info.system_values_read |= bitfield; } else { assert(var->data.mode == ir_var_shader_out); if (is_patch_generic) { - prog->PatchOutputsWritten |= bitfield; + prog->info.patch_outputs_written |= bitfield; } else if (!var->data.read_only) { prog->info.outputs_written |= bitfield; if (var->data.index > 0) @@ -136,7 +136,7 @@ mark(struct gl_program *prog, ir_variable *var, int offset, int len, } if (var->data.fb_fetch_output) - prog->OutputsRead |= bitfield; + prog->info.outputs_read |= bitfield; } } } @@ -416,7 +416,7 @@ ir_visitor_status ir_set_program_inouts_visitor::visit_enter(ir_texture *ir) { if (ir->op == ir_tg4) - prog->UsesGather = true; + prog->info.uses_texture_gather = true; return visit_continue; } @@ -429,10 +429,10 @@ do_set_program_inouts(exec_list *instructions, struct gl_program *prog, prog->info.inputs_read = 0; prog->info.outputs_written = 0; prog->SecondaryOutputsWritten = 0; - prog->OutputsRead = 0; - prog->PatchInputsRead = 0; - prog->PatchOutputsWritten = 0; - prog->SystemValuesRead = 0; + prog->info.outputs_read = 0; + prog->info.patch_inputs_read = 0; + prog->info.patch_outputs_written = 0; + prog->info.system_values_read = 0; if (shader_stage == MESA_SHADER_FRAGMENT) { prog->info.fs.uses_sample_qualifier = false; prog->info.fs.uses_discard = false;