svga: include sample count in surface_size() computation
authorBrian Paul <brianp@vmware.com>
Mon, 21 Aug 2017 19:08:41 +0000 (13:08 -0600)
committerBrian Paul <brianp@vmware.com>
Wed, 30 Aug 2017 19:59:14 +0000 (13:59 -0600)
commit5610911fed0f03962807ff9eb79d99eb005a5d71
treecf064f8beb49eec5a588861091d84e827f5f6a77
parent350ead0f26fa300fcf67a0119840c6873846665e
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>
src/gallium/drivers/svga/svga_screen_cache.c