projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
350ead0
)
svga: include sample count in surface_size() computation
author
Brian Paul
<brianp@vmware.com>
Mon, 21 Aug 2017 19:08:41 +0000
(13:08 -0600)
committer
Brian Paul
<brianp@vmware.com>
Wed, 30 Aug 2017 19:59:14 +0000
(13:59 -0600)
Use MAX2() because sampleCount will be zero for non-MSAA surfaces.
No Piglit regressions.
Reviewed-by: Charmaine Lee <charmainel@vmware.com>
src/gallium/drivers/svga/svga_screen_cache.c
patch
|
blob
|
history
diff --git
a/src/gallium/drivers/svga/svga_screen_cache.c
b/src/gallium/drivers/svga/svga_screen_cache.c
index 5cec435830a37a37bf2334ecec9d2d4c0c7bf7fb..686d94aa50d8fc2e002a2851a18588ddb5d5b833 100644
(file)
--- a/
src/gallium/drivers/svga/svga_screen_cache.c
+++ b/
src/gallium/drivers/svga/svga_screen_cache.c
@@
-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;
}