[Mesa-dev] [PATCH] st/mesa: set Const.MaxTextureMbytes

Marek Olšák maraeo at gmail.com
Mon Aug 22 14:06:42 UTC 2016


From: Marek Olšák <marek.olsak at amd.com>

---
 src/mesa/state_tracker/st_extensions.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/src/mesa/state_tracker/st_extensions.c b/src/mesa/state_tracker/st_extensions.c
index 1f53bdf..ebf1f04 100644
--- a/src/mesa/state_tracker/st_extensions.c
+++ b/src/mesa/state_tracker/st_extensions.c
@@ -458,20 +458,22 @@ void st_init_limits(struct pipe_screen *screen,
     * PIPE_CAP_MAX_TEXTURE_ARRAY_LAYERS has the same
     * number of layers as we need, although we technically
     * could have more the generality is not really useful
     * in practicality.
     */
    c->MaxFramebufferLayers =
       screen->get_param(screen, PIPE_CAP_MAX_TEXTURE_ARRAY_LAYERS);
 
    c->MaxWindowRectangles =
       screen->get_param(screen, PIPE_CAP_MAX_WINDOW_RECTANGLES);
+
+   c->MaxTextureMbytes = screen->get_param(screen, PIPE_CAP_VIDEO_MEMORY);
 }
 
 
 /**
  * Given a member \c x of struct gl_extensions, return offset of
  * \c x in bytes.
  */
 #define o(x) offsetof(struct gl_extensions, x)
 
 
-- 
2.7.4



More information about the mesa-dev mailing list