brw: Delete program_string_id from brw program keys

This is strictly a GL thing.  iris can manage it in its own program keys
without polluting the compiler with stuff nobody else cares about.

We can also drop a lot of padding that was introduced in commit
a18835a9ca which doesn't appear to be
necessary.

Reviewed-by: Alyssa Rosenzweig <alyssa.rosenzweig@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/38556>
This commit is contained in:
Kenneth Graunke 2025-09-15 16:03:16 -07:00
parent fbd9bf6aeb
commit 868377e4c7
2 changed files with 3 additions and 8 deletions

View file

@ -66,7 +66,6 @@ vue_layout(bool separate_shader)
.prefix.limit_trig_input_range = \
screen->driconf.limit_trig_input_range
#define BRW_KEY_INIT(base_key, _vue_layout) \
.base.program_string_id = (base_key).program_string_id, \
.base.limit_trig_input_range = (base_key).limit_trig_input_range, \
.base.vue_layout = _vue_layout

View file

@ -249,8 +249,6 @@ enum brw_robustness_flags {
};
struct brw_base_prog_key {
unsigned program_string_id;
/** Multiview mask
*
* Used to compute the number of position slots in the VUE
@ -270,7 +268,7 @@ struct brw_base_prog_key {
*/
bool limit_trig_input_range:1;
uint64_t padding:58;
uint32_t padding:26;
};
/**
@ -332,7 +330,7 @@ struct brw_vs_prog_key {
*/
bool no_vf_slot_compaction : 1;
uint64_t padding : 62;
uint32_t padding:30;
};
/** The program key for Tessellation Control Shaders. */
@ -464,7 +462,7 @@ struct brw_cs_prog_key {
*/
bool lower_unaligned_dispatch:1;
uint64_t padding:63;
uint32_t padding:31;
};
struct brw_bs_prog_key {
@ -475,8 +473,6 @@ struct brw_bs_prog_key {
* shader.
*/
uint32_t pipeline_ray_flags;
uint32_t padding;
};
/* brw_any_prog_key is any of the keys that map to an API stage */