summaryrefslogtreecommitdiff
path: root/lib/mesa/src/gallium/drivers/svga/svga_winsys.h
diff options
context:
space:
mode:
Diffstat (limited to 'lib/mesa/src/gallium/drivers/svga/svga_winsys.h')
-rw-r--r--lib/mesa/src/gallium/drivers/svga/svga_winsys.h28
1 files changed, 26 insertions, 2 deletions
diff --git a/lib/mesa/src/gallium/drivers/svga/svga_winsys.h b/lib/mesa/src/gallium/drivers/svga/svga_winsys.h
index 7b3f439af..6818c2931 100644
--- a/lib/mesa/src/gallium/drivers/svga/svga_winsys.h
+++ b/lib/mesa/src/gallium/drivers/svga/svga_winsys.h
@@ -49,7 +49,7 @@ struct svga_winsys_screen;
struct svga_winsys_buffer;
struct pipe_screen;
struct pipe_context;
-struct pipe_debug_callback;
+struct util_debug_callback;
struct pipe_fence_handle;
struct pipe_resource;
struct svga_region;
@@ -109,6 +109,7 @@ enum svga_stats_count {
SVGA_STATS_COUNT_BLITBLITTERCOPY,
SVGA_STATS_COUNT_DEPTHSTENCILSTATE,
SVGA_STATS_COUNT_RASTERIZERSTATE,
+ SVGA_STATS_COUNT_RAWBUFFERSRVIEW,
SVGA_STATS_COUNT_SAMPLER,
SVGA_STATS_COUNT_SAMPLERVIEW,
SVGA_STATS_COUNT_SURFACEWRITEFLUSH,
@@ -131,6 +132,7 @@ enum svga_stats_time {
SVGA_STATS_TIME_CREATEBACKEDSURFACEVIEW,
SVGA_STATS_TIME_CREATEBUFFER,
SVGA_STATS_TIME_CREATECONTEXT,
+ SVGA_STATS_TIME_CREATECS,
SVGA_STATS_TIME_CREATEFS,
SVGA_STATS_TIME_CREATEGS,
SVGA_STATS_TIME_CREATESURFACE,
@@ -144,8 +146,10 @@ enum svga_stats_time {
SVGA_STATS_TIME_DRAWVBO,
SVGA_STATS_TIME_DRAWARRAYS,
SVGA_STATS_TIME_DRAWELEMENTS,
+ SVGA_STATS_TIME_EMITCS,
SVGA_STATS_TIME_EMITFS,
SVGA_STATS_TIME_EMITGS,
+ SVGA_STATS_TIME_EMITRAWBUFFER,
SVGA_STATS_TIME_EMITTCS,
SVGA_STATS_TIME_EMITTES,
SVGA_STATS_TIME_EMITVS,
@@ -156,6 +160,7 @@ enum svga_stats_time {
SVGA_STATS_TIME_HWTNLDRAWELEMENTS,
SVGA_STATS_TIME_HWTNLFLUSH,
SVGA_STATS_TIME_HWTNLPRIM,
+ SVGA_STATS_TIME_LAUNCHGRID,
SVGA_STATS_TIME_PROPAGATESURFACE,
SVGA_STATS_TIME_SETSAMPLERVIEWS,
SVGA_STATS_TIME_SURFACEFLUSH,
@@ -166,7 +171,9 @@ enum svga_stats_time {
SVGA_STATS_TIME_TEXTRANSFERUNMAP,
SVGA_STATS_TIME_TGSIVGPU10TRANSLATE,
SVGA_STATS_TIME_TGSIVGPU9TRANSLATE,
+ SVGA_STATS_TIME_UPDATECSUAV,
SVGA_STATS_TIME_UPDATESTATE,
+ SVGA_STATS_TIME_UPDATEUAV,
SVGA_STATS_TIME_VALIDATESURFACEVIEW,
SVGA_STATS_TIME_VBUFDRAWARRAYS,
SVGA_STATS_TIME_VBUFDRAWELEMENTS,
@@ -184,6 +191,7 @@ enum svga_stats_time {
SVGA_STATS_PREFIX "BlitBlitterCopy", \
SVGA_STATS_PREFIX "DepthStencilState", \
SVGA_STATS_PREFIX "RasterizerState", \
+ SVGA_STATS_PREFIX "RawBufferSRView", \
SVGA_STATS_PREFIX "Sampler", \
SVGA_STATS_PREFIX "SamplerView", \
SVGA_STATS_PREFIX "SurfaceWriteFlush", \
@@ -204,6 +212,7 @@ enum svga_stats_time {
SVGA_STATS_PREFIX "CreateBackedSurfaceView", \
SVGA_STATS_PREFIX "CreateBuffer", \
SVGA_STATS_PREFIX "CreateContext", \
+ SVGA_STATS_PREFIX "CreateCS", \
SVGA_STATS_PREFIX "CreateFS", \
SVGA_STATS_PREFIX "CreateGS", \
SVGA_STATS_PREFIX "CreateSurface", \
@@ -217,8 +226,10 @@ enum svga_stats_time {
SVGA_STATS_PREFIX "DrawVBO", \
SVGA_STATS_PREFIX "DrawArrays", \
SVGA_STATS_PREFIX "DrawElements", \
+ SVGA_STATS_PREFIX "EmitCS", \
SVGA_STATS_PREFIX "EmitFS", \
SVGA_STATS_PREFIX "EmitGS", \
+ SVGA_STATS_PREFIX "EmitRawBuffer", \
SVGA_STATS_PREFIX "EmitTCS", \
SVGA_STATS_PREFIX "EmitTES", \
SVGA_STATS_PREFIX "EmitVS", \
@@ -229,6 +240,7 @@ enum svga_stats_time {
SVGA_STATS_PREFIX "HWtnlDrawElements", \
SVGA_STATS_PREFIX "HWtnlFlush", \
SVGA_STATS_PREFIX "HWtnlPrim", \
+ SVGA_STATS_PREFIX "LaunchGrid", \
SVGA_STATS_PREFIX "PropagateSurface", \
SVGA_STATS_PREFIX "SetSamplerViews", \
SVGA_STATS_PREFIX "SurfaceFlush", \
@@ -239,7 +251,9 @@ enum svga_stats_time {
SVGA_STATS_PREFIX "TextureTransferUnmap", \
SVGA_STATS_PREFIX "TGSIVGPU10Translate", \
SVGA_STATS_PREFIX "TGSIVGPU9Translate", \
+ SVGA_STATS_PREFIX "UpdateCSUAV", \
SVGA_STATS_PREFIX "UpdateState", \
+ SVGA_STATS_PREFIX "UpdateUAV", \
SVGA_STATS_PREFIX "ValidateSurfaceView", \
SVGA_STATS_PREFIX "VbufDrawArrays", \
SVGA_STATS_PREFIX "VbufDrawElements", \
@@ -463,7 +477,7 @@ struct svga_winsys_context
unsigned flags);
/** To report perf/conformance/etc issues to the gallium frontend */
- struct pipe_debug_callback *debug_callback;
+ struct util_debug_callback *debug_callback;
/** The more recent command issued to command buffer */
SVGAFifo3dCmdId last_command;
@@ -803,6 +817,16 @@ struct svga_winsys_screen
boolean have_fence_fd;
boolean have_intra_surface_copy;
boolean have_constant_buffer_offset_cmd;
+ boolean have_index_vertex_buffer_offset_cmd;
+
+ /* Have rasterizer state v2 command support */
+ boolean have_rasterizer_state_v2_cmd;
+
+ /** Have GL43 capable device */
+ boolean have_gl43;
+
+ /** SVGA device_id version we're running on */
+ uint16_t device_id;
};