mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-02-04 08:30:27 +01:00
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
9b872cc3a5
commit
8fb66e77e2
2 changed files with 9 additions and 0 deletions
|
|
@ -738,6 +738,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)
|
||||
{
|
||||
|
|
|
|||
|
|
@ -112,6 +112,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…
Add table
Reference in a new issue