iris: drop const from prog data parameters
authorKenneth Graunke <kenneth@whitecape.org>
Wed, 24 Jan 2018 04:01:28 +0000 (20:01 -0800)
committerKenneth Graunke <kenneth@whitecape.org>
Thu, 21 Feb 2019 18:26:05 +0000 (10:26 -0800)
we ralloc steal things, which makes it a little bogus

src/gallium/drivers/iris/iris_context.h
src/gallium/drivers/iris/iris_program_cache.c

index aab8bd0891a67a42e9d74d85daa297314d8e19ae..46ef2d172690d95491ce200f426f77314a1207a7 100644 (file)
@@ -190,7 +190,7 @@ void iris_upload_and_bind_shader(struct iris_context *ice,
                                  enum iris_program_cache_id cache_id,
                                  const void *key,
                                  const void *assembly,
-                                 const struct brw_stage_prog_data *prog_data);
+                                 struct brw_stage_prog_data *prog_data);
 const void *iris_find_previous_compile(struct iris_program_cache *cache,
                                        enum iris_program_cache_id cache_id,
                                        unsigned program_string_id);
index 1c707a78948309007dae0616c746b964df7a8810..58e3b3c25e9d81f2cdf59c41ef265a2ae3a88737 100644 (file)
@@ -246,7 +246,7 @@ iris_upload_and_bind_shader(struct iris_context *ice,
                             enum iris_program_cache_id cache_id,
                             const void *key,
                             const void *assembly,
-                            const struct brw_stage_prog_data *prog_data)
+                            struct brw_stage_prog_data *prog_data)
 {
    struct iris_screen *screen = (void *) ice->ctx.screen;
    struct gen_device_info *devinfo = &screen->devinfo;