brw: store source_hash in prog_data

This is a debug feature that we kind of manage in the driver atm. It's
better that we move this completely to the compiler and can load it
from the cache.

Signed-off-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Reviewed-by: Michael Cheng <michael.cheng@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/33643>
This commit is contained in:
Lionel Landwerlin 2025-02-12 12:43:25 +02:00 committed by Marge Bot
parent 2f156ddb50
commit da098b76a4
2 changed files with 3 additions and 0 deletions

View file

@ -602,6 +602,8 @@ struct brw_stage_prog_data {
bool use_alt_mode; /**< Use ALT floating point mode? Otherwise, IEEE. */
uint32_t source_hash;
/* 32-bit identifiers for all push/pull parameters. These can be anything
* the driver wishes them to be; the core of the back-end compiler simply
* re-arranges them. The one restriction is that the bottom 2^16 values

View file

@ -1545,6 +1545,7 @@ void brw_prog_data_init(struct brw_stage_prog_data *prog_data,
*/
prog_data->ray_queries = params->nir->info.ray_queries;
prog_data->stage = params->nir->info.stage;
prog_data->source_hash = params->source_hash;
prog_data->total_scratch = 0;
prog_data->total_shared = params->nir->info.shared_size;
}