diff options
author | George Kyriazis <[email protected]> | 2016-04-13 10:48:55 -0500 |
---|---|---|
committer | Tim Rowley <[email protected]> | 2016-04-13 13:46:37 -0500 |
commit | f69a61b1aa7f7fc8dd190cb3d5da1e7bca7de809 (patch) | |
tree | 38baaef8f1d01c507e52b4a4036b37fdb5026d64 /src/gallium/drivers/swr/swr_shader.h | |
parent | c53a12fedc519a179dd815586f432df7c7180732 (diff) |
gallium/swr: Make flat shading tris work.
- Incorporate flatshade flag into the shader generation
- Use provoking vertex (vc) in shader when flat shading.
Reviewed-by: Bruce Cherniak <[email protected]>
Diffstat (limited to 'src/gallium/drivers/swr/swr_shader.h')
-rw-r--r-- | src/gallium/drivers/swr/swr_shader.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/gallium/drivers/swr/swr_shader.h b/src/gallium/drivers/swr/swr_shader.h index 4814b9d914c..3f79570bbd9 100644 --- a/src/gallium/drivers/swr/swr_shader.h +++ b/src/gallium/drivers/swr/swr_shader.h @@ -51,6 +51,7 @@ struct swr_jit_sampler_key { struct swr_jit_fs_key : swr_jit_sampler_key { unsigned nr_cbufs; unsigned light_twoside; + unsigned flatshade; ubyte vs_output_semantic_name[PIPE_MAX_SHADER_OUTPUTS]; ubyte vs_output_semantic_idx[PIPE_MAX_SHADER_OUTPUTS]; }; |