Skip to content
Commit bdc842a0 authored by Vadym Shovkoplias's avatar Vadym Shovkoplias Committed by Dylan Baker
Browse files

glsl/linker: Allow unused in blocks which are not declated on previous stage

>From Section 4.3.4 (Inputs) of the GLSL 1.50 spec:

    "Only the input variables that are actually read need to be written
     by the previous stage; it is allowed to have superfluous
     declarations of input variables."

Fixes:
    * interstage-multiple-shader-objects.shader_test

v2:
  Update comment in ir.h since the usage of "used" field
  has been extended.

Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=101247


Signed-off-by: default avatarVadym Shovkoplias <vadym.shovkoplias@globallogic.com>
Reviewed-by: default avatarAlejandro Piñeiro <apinheiro@igalia.com>
Reviewed-by: default avatarTimothy Arceri <tarceri@itsqueeze.com>
(cherry picked from commit 4a8444d5)
parent 850e1259
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment