summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/swr/swr_shader.h
diff options
context:
space:
mode:
authorGeorge Kyriazis <[email protected]>2016-04-13 10:48:55 -0500
committerTim Rowley <[email protected]>2016-04-13 13:46:37 -0500
commitf69a61b1aa7f7fc8dd190cb3d5da1e7bca7de809 (patch)
tree38baaef8f1d01c507e52b4a4036b37fdb5026d64 /src/gallium/drivers/swr/swr_shader.h
parentc53a12fedc519a179dd815586f432df7c7180732 (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.h1
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];
};