X-Git-Url: https://git.libre-soc.org/?a=blobdiff_plain;f=src%2Fgallium%2Fdrivers%2Fsvga%2Fsvga_screen.h;h=12b93468da2eea73f0a6a2bb9541a9c0d5612abb;hb=4379dcc12d36bf9993a06c628c9426d4f54ba58d;hp=5581d2e1ffdac2e5f1efc939c4d9e90aef774ea3;hpb=005c8e01062e8e88a86904b955d5422742bd32e7;p=mesa.git diff --git a/src/gallium/drivers/svga/svga_screen.h b/src/gallium/drivers/svga/svga_screen.h index 5581d2e1ffd..12b93468da2 100644 --- a/src/gallium/drivers/svga/svga_screen.h +++ b/src/gallium/drivers/svga/svga_screen.h @@ -62,12 +62,13 @@ struct svga_screen boolean no_surface_view; boolean force_sampler_view; boolean no_sampler_view; + boolean no_cache_index_buffers; } debug; unsigned texture_timestamp; - pipe_mutex tex_mutex; + mtx_t tex_mutex; - pipe_mutex swc_mutex; /* Used for buffer uploads */ + mtx_t swc_mutex; /* Used for buffer uploads */ /* which formats to translate depth formats into */ struct { @@ -80,8 +81,13 @@ struct svga_screen struct svga_host_surface_cache cache; - /** Memory used by all resources (buffers and surfaces) */ - uint64_t total_resource_bytes; + /** HUD counters */ + struct { + /** Memory used by all resources (buffers and surfaces) */ + uint64_t total_resource_bytes; + uint64_t num_resources; + uint64_t num_failed_allocations; + } hud; }; #ifndef DEBUG