projects
/
platform
/
upstream
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
19ed0f0
)
frontends/hgl: set framebuffer id
author
X512
<danger_mail@list.ru>
Tue, 5 Jan 2021 04:18:17 +0000
(22:18 -0600)
committer
Alexander von Gluck IV
<kallisti5@unixzen.com>
Sun, 10 Jan 2021 02:51:24 +0000
(20:51 -0600)
Reviewed-by: Alexander von Gluck IV <kallisti5@unixzen.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/8323>
src/gallium/frontends/hgl/hgl.c
patch
|
blob
|
history
diff --git
a/src/gallium/frontends/hgl/hgl.c
b/src/gallium/frontends/hgl/hgl.c
index
efc4205
..
ee530af
100644
(file)
--- a/
src/gallium/frontends/hgl/hgl.c
+++ b/
src/gallium/frontends/hgl/hgl.c
@@
-217,6
+217,8
@@
hgl_st_manager_get_param(struct st_manager *smapi, enum st_manager_param param)
}
+static uint32_t hgl_fb_ID = 0;
+
/**
* Create new framebuffer
*/
@@
-254,6
+256,7
@@
hgl_create_st_framebuffer(struct hgl_context* context)
p_atomic_set(&buffer->stfbi->stamp, 1);
buffer->stfbi->st_manager_private = (void*)buffer;
+ buffer->stfbi->ID = p_atomic_inc_return(&hgl_fb_ID);
buffer->stfbi->state_manager = context->manager;
return buffer;