commit | d77e164105c38a08817cb04276f30492ae9de229 | [log] [tgz] |
---|---|---|
author | Dawn Han <[email protected]> | Fri Feb 17 17:32:05 2023 +0000 |
committer | Yiwei Zhang <[email protected]> | Mon Feb 20 04:00:05 2023 +0000 |
tree | f97a7950672d5598b5edb2a509ccdc766a37fd83 | |
parent | deea0549d6f3ece0abd7547dedb0303d0dd081e1 [diff] |
minigbm: Relax the validateBufferSize check Blob formats (aka buffers) get represented as R8 textures with height of one and width==size. These have no particular stride requirement, even though the host might ask for a pitch that would make sense for a 2D R8 texture with height greater than one. Relax the validateBufferSize check for format_blob rather than set the stride. As blob defined: buffers of this format must have a height of 1, so height doesn't need to be checked specifically. BUG=b:269565421 TEST=CQ Change-Id: I7a8d4dbf292330df0c24b502abd9dbf3dceac728 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/minigbm/+/4263402 Reviewed-by: Yiwei Zhang <[email protected]> Tested-by: Yiwei Zhang <[email protected]>