mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-06-18 17:18:30 +02:00
svga: include sample count in surface_size() computation
Use MAX2() because sampleCount will be zero for non-MSAA surfaces. No Piglit regressions. Reviewed-by: Charmaine Lee <charmainel@vmware.com>
This commit is contained in:
parent
350ead0f26
commit
5610911fed
1 changed files with 1 additions and 1 deletions
|
|
@ -69,7 +69,7 @@ surface_size(const struct svga_host_surface_cache_key *key)
|
|||
total_size += img_size;
|
||||
}
|
||||
|
||||
total_size *= key->numFaces * key->arraySize;
|
||||
total_size *= key->numFaces * key->arraySize * MAX2(1, key->sampleCount);
|
||||
|
||||
return total_size;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue