aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorKenneth Graunke <[email protected]>2018-09-20 11:12:27 -0700
committerKenneth Graunke <[email protected]>2019-02-21 10:26:08 -0800
commit58a6c99ebe2166f8d5db88830bdfac57540403d4 (patch)
treea4b86cab468d90a32dfc64b555b24862669a62cd /src
parent897f8d92327c4ced8476fc5502deb7204a12933f (diff)
iris: silence const warning
not sure why this is labeled const, I'm pretty sure we are taking the reference and owning this, so there's no particular reason we can't change it. it certainly seems to be working for non-compute. and, freedreno's ir3_shader.c seems to do this as well. still...gross :/
Diffstat (limited to 'src')
-rw-r--r--src/gallium/drivers/iris/iris_program.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gallium/drivers/iris/iris_program.c b/src/gallium/drivers/iris/iris_program.c
index 5a4c6b7fc81..ab2ce815961 100644
--- a/src/gallium/drivers/iris/iris_program.c
+++ b/src/gallium/drivers/iris/iris_program.c
@@ -156,7 +156,7 @@ iris_create_compute_state(struct pipe_context *ctx,
{
assert(state->ir_type == PIPE_SHADER_IR_NIR);
- return iris_create_uncompiled_shader(ctx, state->prog, NULL);
+ return iris_create_uncompiled_shader(ctx, (void *) state->prog, NULL);
}
static void