zink/kopper: add a function for determining if running on software
Reviewed-by: Adam Jackson <ajax@redhat.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/16190>
This commit is contained in:
parent
05ffc5f5ea
commit
5660cded60
|
@ -754,6 +754,13 @@ zink_kopper_update(struct pipe_screen *pscreen, struct pipe_resource *pres, int
|
|||
return true;
|
||||
}
|
||||
|
||||
bool
|
||||
zink_kopper_is_cpu(const struct pipe_screen *pscreen)
|
||||
{
|
||||
const struct zink_screen *screen = (const struct zink_screen*)pscreen;
|
||||
return screen->is_cpu;
|
||||
}
|
||||
|
||||
void
|
||||
zink_kopper_fixup_depth_buffer(struct zink_context *ctx)
|
||||
{
|
||||
|
|
|
@ -113,6 +113,8 @@ void
|
|||
zink_kopper_deinit_displaytarget(struct zink_screen *screen, struct kopper_displaytarget *cdt);
|
||||
bool
|
||||
zink_kopper_update(struct pipe_screen *pscreen, struct pipe_resource *pres, int *w, int *h);
|
||||
bool
|
||||
zink_kopper_is_cpu(const struct pipe_screen *pscreen);
|
||||
void
|
||||
zink_kopper_fixup_depth_buffer(struct zink_context *ctx);
|
||||
bool
|
||||
|
|
Loading…
Reference in New Issue