[Mesa-stable] [PATCH] hgl.c: Haiku hgl_st_framebuffer build fix
Ken Mays
kmays2000 at gmail.com
Sat Sep 21 17:56:21 UTC 2019
>From 5e91f6e5585c0d8db4183fb15f77a484b397044c Mon Sep 17 00:00:00 2001
From: kenmays <maybird1776 at yahoo.com>
Date: Fri, 20 Sep 2019 19:06:42 +0000
Subject: [PATCH] hgl.c: Haiku hgl_st_framebuffer build fix
diff --git a/src/gallium/state_trackers/hgl/hgl.c.older
b/src/gallium/state_trackers/hgl/hgl.c
index bbc477a..2294538 100644
--- a/src/gallium/state_trackers/hgl/hgl.c.older
+++ b/src/gallium/state_trackers/hgl/hgl.c
@@ -44,7 +44,8 @@ hgl_st_context(struct st_context_iface *stctxi)
// Perform a safe void to hgl_buffer cast
-static inline struct hgl_buffer*
+//static inline struct hgl_buffer*
+struct hgl_buffer*
hgl_st_framebuffer(struct st_framebuffer_iface *stfbi)
{
struct hgl_buffer* buffer;
@@ -62,8 +63,10 @@ hgl_st_framebuffer_flush_front(struct
st_context_iface *stctxi,
CALLED();
//struct hgl_context* context = hgl_st_context(stctxi);
- //struct hgl_buffer* buffer = hgl_st_context(stfbi);
-
+ // struct hgl_buffer* buffer = hgl_st_context(stfbi);
+ struct hgl_buffer* buffer = hgl_st_framebuffer(stfbi);
+ //buffer->surface
+
#if 0
struct stw_st_framebuffer *stwfb = stw_st_framebuffer(stfb);
mtx_lock(&stwfb->fb->mutex);
@@ -281,7 +284,8 @@ hgl_create_st_manager(struct hgl_context* context)
//manager->display = dpy;
manager->screen = context->screen;
manager->get_param = hgl_st_manager_get_param;
-
+ manager->st_manager_private = (void *)context;
+
return manager;
}
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/mesa-stable/attachments/20190921/4382167e/attachment.html>
More information about the mesa-stable
mailing list