diff options
author | Charmaine Lee <[email protected]> | 2017-06-01 15:12:14 -0700 |
---|---|---|
committer | Brian Paul <[email protected]> | 2018-09-05 11:22:42 -0600 |
commit | 49678e9e49fd53000b265904ccabca08b64c4583 (patch) | |
tree | 55f03c3c242e229471fae855e41a2693e06b6554 /src/gallium/drivers/svga | |
parent | 4310649ccb37481fd0f15ab0c826ed626bf81caa (diff) |
svga: sync with upstream changes to surface flags
SVGA device now supports 64 bits surface flags. This patch
updates the winsys interface to allow 64 bits surface flags.
The linux winsys layer will for now only honor the lower 32 bits of
the surface flags.
Reviewed-by: Brian Paul <[email protected]>
Diffstat (limited to 'src/gallium/drivers/svga')
-rw-r--r-- | src/gallium/drivers/svga/svga_screen_cache.c | 2 | ||||
-rw-r--r-- | src/gallium/drivers/svga/svga_screen_cache.h | 2 | ||||
-rw-r--r-- | src/gallium/drivers/svga/svga_surface.c | 4 | ||||
-rw-r--r-- | src/gallium/drivers/svga/svga_surface.h | 2 | ||||
-rw-r--r-- | src/gallium/drivers/svga/svga_winsys.h | 2 |
5 files changed, 6 insertions, 6 deletions
diff --git a/src/gallium/drivers/svga/svga_screen_cache.c b/src/gallium/drivers/svga/svga_screen_cache.c index 4c923bf8eed..82dd2b2c3a0 100644 --- a/src/gallium/drivers/svga/svga_screen_cache.c +++ b/src/gallium/drivers/svga/svga_screen_cache.c @@ -478,7 +478,7 @@ svga_screen_surface_create(struct svga_screen *svgascreen, if (cachable) { /* Try to re-cycle a previously freed, cached surface */ if (key->format == SVGA3D_BUFFER) { - SVGA3dSurface1Flags hint_flag; + SVGA3dSurfaceAllFlags hint_flag; /* For buffers, round the buffer size up to the nearest power * of two to increase the probability of cache hits. Keep diff --git a/src/gallium/drivers/svga/svga_screen_cache.h b/src/gallium/drivers/svga/svga_screen_cache.h index aa8e0c3eff2..a239b761fc2 100644 --- a/src/gallium/drivers/svga/svga_screen_cache.h +++ b/src/gallium/drivers/svga/svga_screen_cache.h @@ -60,7 +60,7 @@ struct svga_context; */ struct svga_host_surface_cache_key { - SVGA3dSurface1Flags flags; + SVGA3dSurfaceAllFlags flags; SVGA3dSurfaceFormat format; SVGA3dSize size; uint32_t numFaces:3; diff --git a/src/gallium/drivers/svga/svga_surface.c b/src/gallium/drivers/svga/svga_surface.c index 98a0cf6ade3..cb74a00c1e0 100644 --- a/src/gallium/drivers/svga/svga_surface.c +++ b/src/gallium/drivers/svga/svga_surface.c @@ -151,7 +151,7 @@ struct svga_winsys_surface * svga_texture_view_surface(struct svga_context *svga, struct svga_texture *tex, unsigned bind_flags, - SVGA3dSurface1Flags flags, + SVGA3dSurfaceAllFlags flags, SVGA3dSurfaceFormat format, unsigned start_mip, unsigned num_mip, @@ -261,7 +261,7 @@ svga_create_surface_view(struct pipe_context *pipe, struct svga_surface *s; unsigned layer, zslice, bind; unsigned nlayers = 1; - SVGA3dSurface1Flags flags = 0; + SVGA3dSurfaceAllFlags flags = 0; SVGA3dSurfaceFormat format; struct pipe_surface *retVal = NULL; diff --git a/src/gallium/drivers/svga/svga_surface.h b/src/gallium/drivers/svga/svga_surface.h index fc6b333fe7b..6c1e0e72165 100644 --- a/src/gallium/drivers/svga/svga_surface.h +++ b/src/gallium/drivers/svga/svga_surface.h @@ -95,7 +95,7 @@ struct svga_winsys_surface * svga_texture_view_surface(struct svga_context *svga, struct svga_texture *tex, unsigned bind_flags, - SVGA3dSurface1Flags flags, + SVGA3dSurfaceAllFlags flags, SVGA3dSurfaceFormat format, unsigned start_mip, unsigned num_mip, diff --git a/src/gallium/drivers/svga/svga_winsys.h b/src/gallium/drivers/svga/svga_winsys.h index a4c4d6a8858..ea7bbb380a8 100644 --- a/src/gallium/drivers/svga/svga_winsys.h +++ b/src/gallium/drivers/svga/svga_winsys.h @@ -530,7 +530,7 @@ struct svga_winsys_screen */ struct svga_winsys_surface * (*surface_create)(struct svga_winsys_screen *sws, - SVGA3dSurface1Flags flags, + SVGA3dSurfaceAllFlags flags, SVGA3dSurfaceFormat format, unsigned usage, SVGA3dSize size, |