brw: add helpers to check if a fragment shader execution is dynamic
Signed-off-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com> Reviewed-by: Ivan Briano <ivan.briano@intel.com> Reviewed-by: Caio Oliveira <caio.oliveira@intel.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/34109>
This commit is contained in:
committed by
Marge Bot
parent
4717382f84
commit
a9ee498347
@@ -383,6 +383,14 @@ struct brw_wm_prog_key {
|
||||
uint64_t padding:35;
|
||||
};
|
||||
|
||||
static inline bool
|
||||
brw_wm_prog_key_is_dynamic(const struct brw_wm_prog_key *key)
|
||||
{
|
||||
return key->alpha_to_coverage == INTEL_SOMETIMES ||
|
||||
key->persample_interp == INTEL_SOMETIMES ||
|
||||
key->multisample_fbo == INTEL_SOMETIMES;
|
||||
}
|
||||
|
||||
struct brw_cs_prog_key {
|
||||
struct brw_base_prog_key base;
|
||||
};
|
||||
@@ -782,6 +790,14 @@ struct brw_wm_prog_data {
|
||||
uint8_t urb_setup_attribs_count;
|
||||
};
|
||||
|
||||
static inline bool
|
||||
brw_wm_prog_data_is_dynamic(const struct brw_wm_prog_data *prog_data)
|
||||
{
|
||||
return prog_data->alpha_to_coverage == INTEL_SOMETIMES ||
|
||||
prog_data->coarse_pixel_dispatch == INTEL_SOMETIMES ||
|
||||
prog_data->persample_dispatch == INTEL_SOMETIMES;
|
||||
}
|
||||
|
||||
#ifdef GFX_VERx10
|
||||
|
||||
#if GFX_VERx10 >= 200
|
||||
|
||||
Reference in New Issue
Block a user