mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-08 15:00:11 +01:00
iris: Fix assertion meant to only target the clear-color stride
Fixes: 2bc8c61fd0 ("iris: Return a 64B stride for clear color plane")
Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/6398
Signed-off-by: Jordan Justen <jordan.l.justen@intel.com>
Reviewed-by: Nanley Chery <nanley.g.chery@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/16241>
This commit is contained in:
parent
ab9d649ac3
commit
33456ae5a4
1 changed files with 1 additions and 1 deletions
|
|
@ -1692,7 +1692,7 @@ iris_resource_get_param(struct pipe_screen *pscreen,
|
|||
* the plane's pitch should be ignored, some kernels have been found to
|
||||
* require 64-byte alignment.
|
||||
*/
|
||||
assert(*value != 0 && *value % 64 == 0);
|
||||
assert(*value != 0 && (!wants_cc || *value % 64 == 0));
|
||||
|
||||
return true;
|
||||
case PIPE_RESOURCE_PARAM_OFFSET:
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue