[Mesa-dev] [PATCH 2/2] main/state: Flag new constants for compute shaders
Jordan Justen
jordan.l.justen at intel.com
Tue Jun 16 14:21:40 PDT 2015
Signed-off-by: Jordan Justen <jordan.l.justen at intel.com>
---
src/mesa/main/state.c | 10 ++++++++++
1 file changed, 10 insertions(+)
diff --git a/src/mesa/main/state.c b/src/mesa/main/state.c
index bede7fe..beb2721 100644
--- a/src/mesa/main/state.c
+++ b/src/mesa/main/state.c
@@ -278,6 +278,16 @@ update_program_constants(struct gl_context *ctx)
}
}
+ if (ctx->ComputeProgram._Current) {
+ const struct gl_program_parameter_list *params =
+ ctx->ComputeProgram._Current->Base.Parameters;
+ /*FIXME: StateFlags is always 0 because we have unnamed constant
+ * not state changes */
+ if (params /*&& params->StateFlags & ctx->NewState*/) {
+ new_state |= _NEW_PROGRAM_CONSTANTS;
+ }
+ }
+
return new_state;
}
--
2.1.4
More information about the mesa-dev
mailing list