mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-07 17:58:26 +02:00
isl: account for protection in base usage checks
Only Cc stable because it's needed for the next patches.
Signed-off-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Cc: mesa-stable
Reviewed-by: José Roberto de Souza <jose.souza@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/29982>
(cherry picked from commit 4eab285d4a)
This commit is contained in:
parent
f3bc003507
commit
8d4ee91743
2 changed files with 4 additions and 2 deletions
|
|
@ -824,7 +824,7 @@
|
|||
"description": "isl: account for protection in base usage checks",
|
||||
"nominated": true,
|
||||
"nomination_type": 0,
|
||||
"resolution": 0,
|
||||
"resolution": 1,
|
||||
"main_sha": null,
|
||||
"because_sha": null,
|
||||
"notes": null
|
||||
|
|
|
|||
|
|
@ -239,7 +239,9 @@ isl_genX(surf_fill_state_s)(const struct isl_device *dev, void *state,
|
|||
/* They may only specify one of the above bits at a time */
|
||||
assert(__builtin_popcount(_base_usage) == 1);
|
||||
/* The only other allowed bit is ISL_SURF_USAGE_CUBE_BIT */
|
||||
assert((info->view->usage & ~ISL_SURF_USAGE_CUBE_BIT) == _base_usage);
|
||||
assert((info->view->usage & ~(ISL_SURF_USAGE_CUBE_BIT |
|
||||
ISL_SURF_USAGE_PROTECTED_BIT)) ==
|
||||
_base_usage);
|
||||
#endif
|
||||
|
||||
if (info->surf->dim == ISL_SURF_DIM_3D) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue