diff options
author | Charmaine Lee <[email protected]> | 2017-11-29 13:09:26 -0800 |
---|---|---|
committer | Brian Paul <[email protected]> | 2018-09-10 13:07:30 -0600 |
commit | b1aee7ff05e55792174973b9272d078f93becd1f (patch) | |
tree | 2e68d1a8981790c6a8d672a3674fb0ec725b8935 /src/gallium/drivers/svga/svga_screen.c | |
parent | 1ea9c80d6d0b3093d8dfa93a5bf93e4d10bf6406 (diff) |
svga: assign a separate function for is_format_supported() for vgpu10 device
This patch adds a new function svga_is_dx_format_supported() to check
for format support in a VGPU10 device.
v2: reapply the patch after svga_is_format_supported is moved to svga_format.c
Reviewed-by: Brian Paul <[email protected]>
Reviewed-by: Neha Bhende <[email protected]>
Diffstat (limited to 'src/gallium/drivers/svga/svga_screen.c')
-rw-r--r-- | src/gallium/drivers/svga/svga_screen.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/gallium/drivers/svga/svga_screen.c b/src/gallium/drivers/svga/svga_screen.c index f376367f6e2..92523315191 100644 --- a/src/gallium/drivers/svga/svga_screen.c +++ b/src/gallium/drivers/svga/svga_screen.c @@ -1070,6 +1070,8 @@ svga_screen_create(struct svga_winsys_screen *sws) svgascreen->max_const_buffers = get_uint_cap(sws, SVGA3D_DEVCAP_DX_MAX_CONSTANT_BUFFERS, 1); assert(svgascreen->max_const_buffers <= SVGA_MAX_CONST_BUFS); + + screen->is_format_supported = svga_is_dx_format_supported; } else { /* VGPU9 */ |