mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-06 06:40:08 +01:00
glsl: set uses texture gather directly in shader_info
Reviewed-by: Jason Ekstrand <jason@jlekstrand.net>
This commit is contained in:
parent
4016f08854
commit
9972c591e7
3 changed files with 1 additions and 5 deletions
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -29,6 +29,4 @@ copy_shader_info(const struct gl_shader_program *shader_prog,
|
|||
struct gl_linked_shader *sh)
|
||||
{
|
||||
shader_info *info = &sh->Program->info;
|
||||
|
||||
info->uses_texture_gather = sh->Program->UsesGather;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1928,8 +1928,6 @@ struct gl_program
|
|||
GLbitfield ShadowSamplers; /**< Texture units used for shadow sampling. */
|
||||
GLbitfield ExternalSamplersUsed; /**< Texture units used for samplerExternalOES */
|
||||
|
||||
GLboolean UsesGather; /**< Does this program use gather4 at all? */
|
||||
|
||||
/* Vertex and geometry shaders fields */
|
||||
unsigned ClipDistanceArraySize;
|
||||
unsigned CullDistanceArraySize;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue