[Mesa-dev] [PATCH mesa] i965: gen_shader_sha1() doesn't use the brw_context

Tapani Pälli tapani.palli at intel.com
Tue Aug 7 10:53:28 UTC 2018


Reviewed-by: Tapani Pälli <tapani.palli at intel.com>

On 08/07/2018 01:43 PM, Eric Engestrom wrote:
> Signed-off-by: Eric Engestrom <eric.engestrom at intel.com>
> ---
>   src/mesa/drivers/dri/i965/brw_disk_cache.c | 8 ++++----
>   1 file changed, 4 insertions(+), 4 deletions(-)
> 
> diff --git a/src/mesa/drivers/dri/i965/brw_disk_cache.c b/src/mesa/drivers/dri/i965/brw_disk_cache.c
> index 9a6f2ff570c275e7ad53..65fcab24b7f93661d348 100644
> --- a/src/mesa/drivers/dri/i965/brw_disk_cache.c
> +++ b/src/mesa/drivers/dri/i965/brw_disk_cache.c
> @@ -53,8 +53,8 @@ debug_enabled_for_stage(gl_shader_stage stage)
>   }
>   
>   static void
> -gen_shader_sha1(struct brw_context *brw, struct gl_program *prog,
> -                gl_shader_stage stage, void *key, unsigned char *out_sha1)
> +gen_shader_sha1(struct gl_program *prog, gl_shader_stage stage,
> +                void *key, unsigned char *out_sha1)
>   {
>      char sha1_buf[41];
>      unsigned char sha1[20];
> @@ -120,7 +120,7 @@ read_and_upload(struct brw_context *brw, struct disk_cache *cache,
>       */
>      brw_prog_key_set_id(&prog_key, stage, 0);
>   
> -   gen_shader_sha1(brw, prog, stage, &prog_key, binary_sha1);
> +   gen_shader_sha1(prog, stage, &prog_key, binary_sha1);
>   
>      size_t buffer_size;
>      uint8_t *buffer = disk_cache_get(cache, binary_sha1, &buffer_size);
> @@ -277,7 +277,7 @@ write_program_data(struct brw_context *brw, struct gl_program *prog,
>   
>      unsigned char sha1[20];
>      char buf[41];
> -   gen_shader_sha1(brw, prog, stage, key, sha1);
> +   gen_shader_sha1(prog, stage, key, sha1);
>      _mesa_sha1_format(buf, sha1);
>      if (brw->ctx._Shader->Flags & GLSL_CACHE_INFO) {
>         fprintf(stderr, "putting binary in cache: %s\n", buf);
> 


More information about the mesa-dev mailing list