mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-02-16 23:50:37 +01:00
st/vega: Make it compatible with st_public.h.
It missed a stub for st_get_proc_address, and st_make_current should return a boolean. Signed-off-by: Chia-I Wu <olvaffe@gmail.com>
This commit is contained in:
parent
940360a2e5
commit
ea014ed461
2 changed files with 12 additions and 6 deletions
|
|
@ -371,14 +371,15 @@ void st_unreference_framebuffer(struct st_framebuffer *stfb)
|
|||
/* FIXME */
|
||||
}
|
||||
|
||||
void st_make_current(struct vg_context *st,
|
||||
struct st_framebuffer *draw,
|
||||
struct st_framebuffer *read)
|
||||
boolean st_make_current(struct vg_context *st,
|
||||
struct st_framebuffer *draw,
|
||||
struct st_framebuffer *read)
|
||||
{
|
||||
vg_set_current_context(st);
|
||||
if (st) {
|
||||
st->draw_buffer = draw;
|
||||
}
|
||||
return VG_TRUE;
|
||||
}
|
||||
|
||||
struct vg_context *st_get_current(void)
|
||||
|
|
@ -428,3 +429,8 @@ int st_unbind_texture_surface(struct pipe_surface *ps, int target, int level)
|
|||
{
|
||||
return 0;
|
||||
}
|
||||
|
||||
st_proc st_get_proc_address(const char *procname)
|
||||
{
|
||||
return NULL;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -99,9 +99,9 @@ PUBLIC
|
|||
void st_unreference_framebuffer(struct st_framebuffer *stfb);
|
||||
|
||||
PUBLIC
|
||||
void st_make_current(struct vg_context *st,
|
||||
struct st_framebuffer *draw,
|
||||
struct st_framebuffer *read);
|
||||
boolean st_make_current(struct vg_context *st,
|
||||
struct st_framebuffer *draw,
|
||||
struct st_framebuffer *read);
|
||||
|
||||
PUBLIC
|
||||
struct vg_context *st_get_current(void);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue