broadcom/compiler: add a couple of shader key helpers
authorIago Toral Quiroga <itoral@igalia.com>
Tue, 26 Sep 2023 08:15:17 +0000 (09:15 +0100)
committerMarge Bot <emma+marge@anholt.net>
Mon, 2 Oct 2023 06:35:06 +0000 (06:35 +0000)
commitadc63d25032b8cc784b25922201de14a8eb5bec1
treea890a28501eb80c0e8ed50fa6c7877daa79fe8bf
parentccd3e68146fd7ee8732d497f367a0574e4cf84a8
broadcom/compiler: add a couple of shader key helpers

Our shader key includes a void pointer that we can't just memcmp,
so add helpers that allow us toget the 'static' portion and size
of a key. We will use this to fix up the shader cache in v3d in
a later patch.

Reviewed-by: Juan A. Suarez <jasuarez@igalia.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/25418>
src/broadcom/compiler/v3d_compiler.h