intel/compiler: Add a "base class" for program keys
Right now, all keys have two things in common: a program string ID and a sampler_prog_key_data. I'd like to add another thing or two and need a place to put it. This commit adds a new brw_base_prog_key struct which contains those two common bits. Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
This commit is contained in:

committed by
Jason Ekstrand

parent
3a4667e502
commit
14781e2122
@@ -165,7 +165,7 @@ brw_blorp_init_wm_prog_key(struct brw_wm_prog_key *wm_key)
|
||||
memset(wm_key, 0, sizeof(*wm_key));
|
||||
wm_key->nr_color_regions = 1;
|
||||
for (int i = 0; i < MAX_SAMPLERS; i++)
|
||||
wm_key->tex.swizzles[i] = SWIZZLE_XYZW;
|
||||
wm_key->base.tex.swizzles[i] = SWIZZLE_XYZW;
|
||||
}
|
||||
|
||||
const unsigned *
|
||||
|
Reference in New Issue
Block a user