summaryrefslogtreecommitdiffstats
path: root/src/compiler
diff options
context:
space:
mode:
authorTimothy Arceri <[email protected]>2016-10-18 10:51:43 +1100
committerTimothy Arceri <[email protected]>2016-10-26 14:29:36 +1100
commit91d5b0eda9eeb2a41342e7ab46bd1c779d8b93c9 (patch)
treea32ff065f17b753b1b6976db26283b526b25b5b7 /src/compiler
parentd9d04373c1ba2ae3e20c6b507262ee3c88c4ab78 (diff)
mesa: remove now unused IsCentroid from gl_fragment_program
Reviewed-by: Jason Ekstrand <[email protected]>
Diffstat (limited to 'src/compiler')
-rw-r--r--src/compiler/glsl/ir_set_program_inouts.cpp6
1 files changed, 1 insertions, 5 deletions
diff --git a/src/compiler/glsl/ir_set_program_inouts.cpp b/src/compiler/glsl/ir_set_program_inouts.cpp
index baa52b18057..a1772199638 100644
--- a/src/compiler/glsl/ir_set_program_inouts.cpp
+++ b/src/compiler/glsl/ir_set_program_inouts.cpp
@@ -26,8 +26,7 @@
*
* Sets the InputsRead and OutputsWritten of Mesa programs.
*
- * Additionally, for fragment shaders, sets the IsCentroid and IsSample
- * bitfields.
+ * Additionally, for fragment shaders, set the IsSample bitfield.
*
* Mesa programs (gl_program, not gl_shader_program) have a set of
* flags indicating which varyings are read and written. Computing
@@ -125,8 +124,6 @@ mark(struct gl_program *prog, ir_variable *var, int offset, int len,
if (stage == MESA_SHADER_FRAGMENT) {
gl_fragment_program *fprog = (gl_fragment_program *) prog;
- if (var->data.centroid)
- fprog->IsCentroid |= bitfield;
if (var->data.sample)
fprog->IsSample |= bitfield;
}
@@ -443,7 +440,6 @@ do_set_program_inouts(exec_list *instructions, struct gl_program *prog,
prog->SystemValuesRead = 0;
if (shader_stage == MESA_SHADER_FRAGMENT) {
gl_fragment_program *fprog = (gl_fragment_program *) prog;
- fprog->IsCentroid = 0;
fprog->IsSample = 0;
fprog->UsesKill = false;
}