diff options
author | Charmaine Lee <[email protected]> | 2015-12-21 11:07:08 -0800 |
---|---|---|
committer | Brian Paul <[email protected]> | 2016-01-14 10:39:53 -0700 |
commit | 78e628ae43015a2a8b6a1d7339eb7eb63ab56848 (patch) | |
tree | b43fa1ccf3f4ef3eb0114e597b99f3ac4a2e2614 /src/gallium/drivers/svga/svga_context.h | |
parent | 3038e8984df2be35a7164043ec6d385e32e26238 (diff) |
svga: add num-generate-mipmap HUD query
The actual increment of the num-generate-mipmap counter will be done
in a subsequent patch when hw generate mipmap is supported.
Reviewed-by: Brian Paul <[email protected]>
Reviewed-by: Jose Fonseca <[email protected]>
Diffstat (limited to 'src/gallium/drivers/svga/svga_context.h')
-rw-r--r-- | src/gallium/drivers/svga/svga_context.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/gallium/drivers/svga/svga_context.h b/src/gallium/drivers/svga/svga_context.h index e4f29b8497e..f1a2041b6cf 100644 --- a/src/gallium/drivers/svga/svga_context.h +++ b/src/gallium/drivers/svga/svga_context.h @@ -59,8 +59,9 @@ #define SVGA_QUERY_NUM_RESOURCES (PIPE_QUERY_DRIVER_SPECIFIC + 9) #define SVGA_QUERY_NUM_STATE_OBJECTS (PIPE_QUERY_DRIVER_SPECIFIC + 10) #define SVGA_QUERY_NUM_SURFACE_VIEWS (PIPE_QUERY_DRIVER_SPECIFIC + 11) +#define SVGA_QUERY_NUM_GENERATE_MIPMAP (PIPE_QUERY_DRIVER_SPECIFIC + 12) /*SVGA_QUERY_MAX has to be last because it is size of an array*/ -#define SVGA_QUERY_MAX (PIPE_QUERY_DRIVER_SPECIFIC + 12) +#define SVGA_QUERY_MAX (PIPE_QUERY_DRIVER_SPECIFIC + 13) /** * Maximum supported number of constant buffers per shader @@ -505,6 +506,7 @@ struct svga_context uint64_t num_state_objects; /**< SVGA_QUERY_NUM_STATE_OBJECTS */ uint64_t num_surface_views; /**< SVGA_QUERY_NUM_SURFACE_VIEWS */ uint64_t num_bytes_uploaded; /**< SVGA_QUERY_NUM_BYTES_UPLOADED */ + uint64_t num_generate_mipmap; /**< SVGA_QUERY_NUM_GENERATE_MIPMAP */ } hud; /** The currently bound stream output targets */ |