mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-28 19:00:13 +01:00
wgl: add a flag to determine if running on zink
Reviewed-by: Jesse Natalie <jenatali@microsoft.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/16068>
This commit is contained in:
parent
3d5e6093a2
commit
863ce662b4
2 changed files with 2 additions and 0 deletions
|
|
@ -95,6 +95,7 @@ init_screen(const struct stw_winsys *stw_winsys, HDC hdc)
|
|||
|
||||
stw_dev->smapi->screen = screen;
|
||||
stw_dev->screen = screen;
|
||||
stw_dev->zink = !memcmp(screen->get_name(screen), "zink", 4);
|
||||
|
||||
stw_dev->max_2d_length = screen->get_param(screen,
|
||||
PIPE_CAP_MAX_TEXTURE_2D_SIZE);
|
||||
|
|
|
|||
|
|
@ -91,6 +91,7 @@ struct stw_device
|
|||
struct st_config_options st_options;
|
||||
|
||||
bool initialized;
|
||||
bool zink;
|
||||
};
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue