mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-03 18:00:10 +01:00
isl: Add asserts for gen8+ X/YOffset rules
Reviewed-by: Topi Pohjolainen <topi.pohjolainen@intel.com>
This commit is contained in:
parent
96fa98c18e
commit
ed432fd681
1 changed files with 10 additions and 0 deletions
|
|
@ -414,6 +414,16 @@ isl_genX(surf_fill_state_s)(const struct isl_device *dev, void *state,
|
|||
assert(info->surf->levels == 1);
|
||||
assert(info->surf->logical_level0_px.array_len == 1);
|
||||
assert(info->aux_usage == ISL_AUX_USAGE_NONE);
|
||||
|
||||
if (GEN_GEN >= 8) {
|
||||
/* Broadwell added more rules. */
|
||||
assert(info->surf->samples == 1);
|
||||
if (isl_format_get_layout(info->view->format)->bpb == 8)
|
||||
assert(info->x_offset_sa % 16 == 0);
|
||||
if (isl_format_get_layout(info->view->format)->bpb == 16)
|
||||
assert(info->x_offset_sa % 8 == 0);
|
||||
}
|
||||
|
||||
#if GEN_GEN >= 7
|
||||
s.SurfaceArray = false;
|
||||
#endif
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue