summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/virgl
diff options
context:
space:
mode:
authorAlexandros Frantzis <[email protected]>2019-05-23 14:58:46 +0300
committerChia-I Wu <[email protected]>2019-06-07 21:44:53 -0700
commit8089d3658ad3a2d62fb815d545b727bb72ed63c9 (patch)
tree2e4b6972094843f32088f247188e5f4d1473725e /src/gallium/drivers/virgl
parent371743157e24c59942ac680c952ab2527808e6f2 (diff)
virgl: More info about chosen alignment value
Add more info about why the value of VIRGL_MAP_BUFFER_ALIGNMENT. Signed-off-by: Alexandros Frantzis <[email protected]> Reviewed-by: Chia-I Wu <[email protected]>
Diffstat (limited to 'src/gallium/drivers/virgl')
-rw-r--r--src/gallium/drivers/virgl/virgl_screen.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/gallium/drivers/virgl/virgl_screen.h b/src/gallium/drivers/virgl/virgl_screen.h
index 0256d471f22..93b52b5138d 100644
--- a/src/gallium/drivers/virgl/virgl_screen.h
+++ b/src/gallium/drivers/virgl/virgl_screen.h
@@ -58,6 +58,11 @@ virgl_screen(struct pipe_screen *pipe)
boolean
virgl_has_readback_format(struct pipe_screen *screen, enum virgl_formats fmt);
+/* GL_ARB_map_buffer_alignment requires 64 as the minimum alignment value. In
+ * addition to complying with the extension, a high enough alignment value is
+ * expected by various external GL clients. For example, wined3d doesn't like
+ * maps that don't have a 16 byte alignment.
+ */
#define VIRGL_MAP_BUFFER_ALIGNMENT 64
#endif