[Mesa-stable] [PATCH] hgl_context.h: add pipe_surface

Ken Mays kmays2000 at gmail.com
Sat Sep 21 18:00:32 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_context.h: add pipe_surface

diff --git a/src/gallium/state_trackers/hgl/hgl_context.h.older
b/src/gallium/state_trackers/hgl/hgl_context.h
index 5acb2f0..c5995f1 100644
--- a/src/gallium/state_trackers/hgl/hgl_context.h.older
+++ b/src/gallium/state_trackers/hgl/hgl_context.h
@@ -39,6 +39,8 @@ struct hgl_buffer
 	unsigned mask;

 	struct pipe_screen* screen;
+	struct pipe_surface* surface;
+
 	enum pipe_texture_target target;
 	struct pipe_resource* textures[ST_ATTACHMENT_COUNT];

@@ -80,6 +82,8 @@ struct hgl_context
 	struct hgl_buffer* read;
 };

+// hgl_buffer from statetracker interface
+struct hgl_buffer* hgl_st_framebuffer(struct st_framebuffer_iface *stfbi);

 // hgl state_tracker api
 struct st_api* hgl_create_st_api(void);
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/mesa-stable/attachments/20190921/f6e91239/attachment.html>


More information about the mesa-stable mailing list