From f69a61b1aa7f7fc8dd190cb3d5da1e7bca7de809 Mon Sep 17 00:00:00 2001 From: George Kyriazis Date: Wed, 13 Apr 2016 10:48:55 -0500 Subject: 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 --- src/gallium/drivers/swr/swr_shader.h | 1 + 1 file changed, 1 insertion(+) (limited to 'src/gallium/drivers/swr/swr_shader.h') 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]; }; -- cgit v1.2.3