i965/program_cache: Cast the key to char * before adding key_size
authorJason Ekstrand <jason.ekstrand@intel.com>
Sat, 23 Feb 2019 17:53:43 +0000 (11:53 -0600)
committerJason Ekstrand <jason@jlekstrand.net>
Wed, 10 Jul 2019 19:35:55 +0000 (19:35 +0000)
commit3a4667e502c458b6ac0ae3d4641612a9186a1924
tree54b295770bf1f71d8911c50641a312c591dadcc7
parentbb14abed18638c85b7892f435b9ac26d5b62edd4
i965/program_cache: Cast the key to char * before adding key_size

We're about to change the type of key to be brw_base_prog_key and that
will mean blindly adding the key size without a cast will lead to the
wrong calculation.  It's safer to cast to char * first anyway.

Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
src/mesa/drivers/dri/i965/brw_program_cache.c