gallium/aux: include nr_samples in util_resource_size() computation
authorBrian Paul <brianp@vmware.com>
Thu, 7 Dec 2017 21:47:32 +0000 (14:47 -0700)
committerBrian Paul <brianp@vmware.com>
Tue, 12 Dec 2017 16:44:59 +0000 (09:44 -0700)
commitdde8309cdea5c739983693650105b2f993c5a71c
tree790ef6b37556111beb78ead1107fd52bcf5ded2e
parent09b69828a3521283c332053d8d26fdc5022d4b7f
gallium/aux: include nr_samples in util_resource_size() computation

This function is only used in two places:
1. VMware driver, but only for HUD reporting
2. st/nine state tracker, used for texture memory accounting

Fixes: a69efa9482d ("util: add new util_resource_size() function in
u_resource.[ch]")

Reviewed-by: Roland Scheidegger <sroland@vmware.com>
Reviewed-by: Charmaine Lee <charmainel@vmware.com>
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
src/gallium/auxiliary/util/u_resource.c