Mesa (main): wgl: Add iPixelFormat to stw_pixelformat_info
GitLab Mirror
gitlab-mirror at kemper.freedesktop.org
Wed Sep 15 20:46:37 UTC 2021
Module: Mesa
Branch: main
Commit: 7d96e19b92ffd9a9f975b4b1f1cacee2fb4415c7
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=7d96e19b92ffd9a9f975b4b1f1cacee2fb4415c7
Author: Jesse Natalie <jenatali at microsoft.com>
Date: Sat Sep 4 07:58:17 2021 -0700
wgl: Add iPixelFormat to stw_pixelformat_info
Reviewed-by: Charmaine Lee <charmainel at vmware.com>
Reviewed By: Bill Kristiansen <billkris at microsoft.com>
Acked-by: Roland Scheidegger <sroland at vmware.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/12727>
---
src/gallium/frontends/wgl/stw_pixelformat.c | 1 +
src/gallium/frontends/wgl/stw_pixelformat.h | 2 ++
2 files changed, 3 insertions(+)
diff --git a/src/gallium/frontends/wgl/stw_pixelformat.c b/src/gallium/frontends/wgl/stw_pixelformat.c
index ca2a50c7713..5eabd24b42d 100644
--- a/src/gallium/frontends/wgl/stw_pixelformat.c
+++ b/src/gallium/frontends/wgl/stw_pixelformat.c
@@ -154,6 +154,7 @@ stw_pixelformat_add(struct stw_device *stw_dev,
memset(pfi, 0, sizeof *pfi);
+ pfi->iPixelFormat = util_dynarray_num_elements(&stw_dev->pixelformats, struct stw_pixelformat_info);
pfi->pfd.nSize = sizeof pfi->pfd;
pfi->pfd.nVersion = 1;
diff --git a/src/gallium/frontends/wgl/stw_pixelformat.h b/src/gallium/frontends/wgl/stw_pixelformat.h
index 4a5e83fd275..036baeb8045 100644
--- a/src/gallium/frontends/wgl/stw_pixelformat.h
+++ b/src/gallium/frontends/wgl/stw_pixelformat.h
@@ -51,6 +51,8 @@ struct stw_pixelformat_info
/** WGL_ARB_render_texture */
boolean bindToTextureRGB;
boolean bindToTextureRGBA;
+
+ int iPixelFormat;
};
void
More information about the mesa-commit
mailing list