summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/virgl/virgl_winsys.h
diff options
context:
space:
mode:
authorDave Airlie <[email protected]>2019-08-22 16:30:11 +1000
committerDylan Baker <[email protected]>2019-09-04 11:55:04 -0700
commit7d8eee2bdb107356d09946816957e1035fe49657 (patch)
tree5fc37b309066c7e158be7f61062878cfeefd04e9 /src/gallium/drivers/virgl/virgl_winsys.h
parent6ea07af9c1c3f25f6f8b881f816bd41d3b56a522 (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 <[email protected]> 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 <[email protected]> (cherry picked from commit bba4d2f442f33bc68a4573a6f1f559f277d7ec51)
Diffstat (limited to 'src/gallium/drivers/virgl/virgl_winsys.h')
-rw-r--r--src/gallium/drivers/virgl/virgl_winsys.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/gallium/drivers/virgl/virgl_winsys.h b/src/gallium/drivers/virgl/virgl_winsys.h
index d880648d59d..9abfec6898b 100644
--- a/src/gallium/drivers/virgl/virgl_winsys.h
+++ b/src/gallium/drivers/virgl/virgl_winsys.h
@@ -156,4 +156,7 @@ static inline void virgl_ws_fill_new_caps_defaults(struct virgl_drm_caps *caps)
caps->caps.v2.max_compute_shared_memory_size = 0;
caps->caps.v2.host_feature_check_version = 0;
}
+
+extern enum virgl_formats pipe_to_virgl_format(enum pipe_format format);
+
#endif