svga: only count hardware buffer mappings for HUD
Don't count client memory buffer mappings since they're basically free. Reviewed-by: Charmaine Lee <charmainel@vmware.com>
This commit is contained in:
@@ -247,7 +247,6 @@ svga_buffer_transfer_map(struct pipe_context *pipe,
|
||||
}
|
||||
|
||||
svga->hud.map_buffer_time += (os_time_get() - begin);
|
||||
svga->hud.num_resources_mapped++;
|
||||
|
||||
return map;
|
||||
}
|
||||
|
||||
@@ -253,6 +253,9 @@ svga_buffer_hw_storage_map(struct svga_context *svga,
|
||||
unsigned flags, boolean *retry)
|
||||
{
|
||||
struct svga_winsys_screen *sws = svga_buffer_winsys_screen(sbuf);
|
||||
|
||||
svga->hud.num_resources_mapped++;
|
||||
|
||||
if (sws->have_gb_objects) {
|
||||
return svga->swc->surface_map(svga->swc, sbuf->handle, flags, retry);
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user