• Józef Kucia's avatar
    wined3d: Do not declare pixel shader inputs when they are not used. · 2b77c00b
    Józef Kucia authored
    This is a workaround for a bug in Mesa GLSL linker. The bug is triggered
    by GLSL generated for SM3 shaders when shader inputs are not read and
    interface blocks are used for shader inputs/outputs (core profile code
    path).
    
    Declarations for unused shader inputs are not generated for pixel
    shaders. We still declare shader outputs in the previous shader stage,
    but it's allowed by the GLSL 1.50 spec:
    
      "Only output variables that are read by the subsequent pipeline stage
      need to be written; it is allowed to have superfluous declarations of
      output variables."
    
    The table in section 4.3.4 (Input Variables) of the GLSL 4.20 spec even
    more explicitly allows shader output variables with no matching input
    variables declared in the consuming shader.
    Signed-off-by: 's avatarJózef Kucia <jkucia@codeweavers.com>
    Signed-off-by: 's avatarHenri Verbeet <hverbeet@codeweavers.com>
    Signed-off-by: 's avatarAlexandre Julliard <julliard@winehq.org>
    2b77c00b
Name
Last commit
Last update
..
Makefile.in Loading commit data...
arb_program_shader.c Loading commit data...
ati_fragment_shader.c Loading commit data...
buffer.c Loading commit data...
context.c Loading commit data...
cs.c Loading commit data...
device.c Loading commit data...
directx.c Loading commit data...
drawprim.c Loading commit data...
gl_compat.c Loading commit data...
glsl_shader.c Loading commit data...
nvidia_texture_shader.c Loading commit data...
palette.c Loading commit data...
query.c Loading commit data...
resource.c Loading commit data...
sampler.c Loading commit data...
shader.c Loading commit data...
shader_sm1.c Loading commit data...
shader_sm4.c Loading commit data...
state.c Loading commit data...
stateblock.c Loading commit data...
surface.c Loading commit data...
swapchain.c Loading commit data...
texture.c Loading commit data...
utils.c Loading commit data...
version.rc Loading commit data...
vertexdeclaration.c Loading commit data...
view.c Loading commit data...
wined3d.spec Loading commit data...
wined3d_gl.h Loading commit data...
wined3d_main.c Loading commit data...
wined3d_private.h Loading commit data...