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
@@ -1002,8 +1002,8 @@ blorp_params_get_mcs_partial_resolve_kernel(struct blorp_batch *batch,
|
||||
|
||||
struct brw_wm_prog_key wm_key;
|
||||
brw_blorp_init_wm_prog_key(&wm_key);
|
||||
wm_key.tex.compressed_multisample_layout_mask = 1;
|
||||
wm_key.tex.msaa_16 = blorp_key.num_samples == 16;
|
||||
wm_key.base.tex.compressed_multisample_layout_mask = 1;
|
||||
wm_key.base.tex.msaa_16 = blorp_key.num_samples == 16;
|
||||
wm_key.multisample_fbo = true;
|
||||
|
||||
struct brw_wm_prog_data prog_data;
|
||||
|
Reference in New Issue
Block a user