summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKenneth Graunke <kenneth@whitecape.org>2016-11-16 20:24:25 -0800
committerKenneth Graunke <kenneth@whitecape.org>2016-11-17 14:14:06 -0800
commitca76e6b5213c92432b9f3a641cb26f5861d53e09 (patch)
treec2d08b8abd3857e1a6185d1091ab649230407e45
parent3da7adc75551d1ef66c38f229bf9e62ccdd1e61a (diff)
i965: Fix compute shader crash.
Fixes crashes when starting Deus Ex: Mankind Divided. Cc: mesa-stable@lists.freedesktop.org Signed-off-by: Kenneth Graunke <kenneth@whitecape.org> Reviewed-by: Anuj Phogat <anuj.phogat@gmail.com>
-rw-r--r--src/mesa/drivers/dri/i965/brw_cs.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mesa/drivers/dri/i965/brw_cs.c b/src/mesa/drivers/dri/i965/brw_cs.c
index ab445ab2fdf..72b2dbee51c 100644
--- a/src/mesa/drivers/dri/i965/brw_cs.c
+++ b/src/mesa/drivers/dri/i965/brw_cs.c
@@ -223,7 +223,7 @@ brw_upload_cs_prog(struct brw_context *brw)
&brw->cs.base.prog_data)) {
bool success =
brw_codegen_cs_prog(brw,
- ctx->Shader.CurrentProgram[MESA_SHADER_COMPUTE],
+ ctx->_Shader->CurrentProgram[MESA_SHADER_COMPUTE],
cp, &key);
(void) success;
assert(success);