summaryrefslogtreecommitdiff
path: root/src/gallium/winsys/virgl/drm/virgl_drm_winsys.c
diff options
context:
space:
mode:
authorDave Airlie <airlied@redhat.com>2019-08-22 16:30:11 +1000
committerGert Wollny <gw.fossdev@gmail.com>2019-08-26 06:35:00 +0000
commitbba4d2f442f33bc68a4573a6f1f559f277d7ec51 (patch)
tree648ff7d65873fca2dbbc4e4c028d22789e0e90dd /src/gallium/winsys/virgl/drm/virgl_drm_winsys.c
parent035cd6cdf91f9d49f49f0e152e7204aee51e671b (diff)
virgl: fix format conversion for recent gallium changes.
The virgl formats are fixed in time snapshots of the gallium ones, we just need to provide a translation table between them when we enter the hardware. This fixes a regression since Eric renumbered the gallium table. Fixes: c45c33a5a2 (gallium: Remove manual defining of PIPE_FORMAT enum values.) Bugzilla: https://bugs.freedesktop.org/111454 v1 by Dave Airlie <airlied@redhat.com> v2: virgl: Add a number of formats to the table that are used, e.g. for vertex attributes v3: cover some more missing formats from a piglit run Signed-off-by: Gert Wollny <gert.wollny@collabora.com>
Diffstat (limited to 'src/gallium/winsys/virgl/drm/virgl_drm_winsys.c')
-rw-r--r--src/gallium/winsys/virgl/drm/virgl_drm_winsys.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gallium/winsys/virgl/drm/virgl_drm_winsys.c b/src/gallium/winsys/virgl/drm/virgl_drm_winsys.c
index 725d1f7cbf3..c3509aef49c 100644
--- a/src/gallium/winsys/virgl/drm/virgl_drm_winsys.c
+++ b/src/gallium/winsys/virgl/drm/virgl_drm_winsys.c
@@ -168,7 +168,7 @@ virgl_drm_winsys_resource_create(struct virgl_winsys *qws,
memset(&createcmd, 0, sizeof(createcmd));
createcmd.target = target;
- createcmd.format = format;
+ createcmd.format = pipe_to_virgl_format(format);
createcmd.bind = bind;
createcmd.width = width;
createcmd.height = height;