iris: Simplify iris_get_aux_clear_color_state_size
isl_dev.ss.clear_color_state_size is already zero on BDW and SKL. Drop the redundant platform check and return the field directly. We're going to have this function return zero more often and it will do so uniformly using if-statements. We choose to remove the redundant expression instead of adding a redundant if-statement. Reviewed-by: Jordan Justen <jordan.l.justen@intel.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/13555>
This commit is contained in:
parent
4027337004
commit
fecd6ae38e
|
@ -539,8 +539,7 @@ create_aux_state_map(struct iris_resource *res, enum isl_aux_state initial)
|
|||
static unsigned
|
||||
iris_get_aux_clear_color_state_size(struct iris_screen *screen)
|
||||
{
|
||||
const struct intel_device_info *devinfo = &screen->devinfo;
|
||||
return devinfo->ver >= 10 ? screen->isl_dev.ss.clear_color_state_size : 0;
|
||||
return screen->isl_dev.ss.clear_color_state_size;
|
||||
}
|
||||
|
||||
static void
|
||||
|
|
Loading…
Reference in New Issue