diff options
author | Timothy Arceri <[email protected]> | 2016-10-19 13:45:18 +1100 |
---|---|---|
committer | Timothy Arceri <[email protected]> | 2016-10-26 14:29:36 +1100 |
commit | 17e28a1571b6141368fefc84cc8b0a3b4e52f8ee (patch) | |
tree | 9046dd8d18afba16a7dadc3a855c01da74b3d384 /src/mesa/main/shaderapi.c | |
parent | 91d5b0eda9eeb2a41342e7ab46bd1c779d8b93c9 (diff) |
i965/mesa/st/swrast: set fs shader_info directly and switch to using it
Note we access shader_info from the program struct rather than the
nir_shader pointer because shader cache won't create a nir_shader.
Reviewed-by: Jason Ekstrand <[email protected]>
Diffstat (limited to 'src/mesa/main/shaderapi.c')
-rw-r--r-- | src/mesa/main/shaderapi.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/mesa/main/shaderapi.c b/src/mesa/main/shaderapi.c index bcf53bb679f..4996e8ed1d7 100644 --- a/src/mesa/main/shaderapi.c +++ b/src/mesa/main/shaderapi.c @@ -2196,8 +2196,7 @@ _mesa_copy_linked_program_data(const struct gl_shader_program *src, break; } case MESA_SHADER_FRAGMENT: { - struct gl_fragment_program *dst_fp = (struct gl_fragment_program *) dst; - dst_fp->FragDepthLayout = src->FragDepthLayout; + dst->info.fs.depth_layout = src->FragDepthLayout; break; } case MESA_SHADER_COMPUTE: { |