mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-24 00:10:10 +01:00
loader/nouveau: Fix the comment in nouveau_zink_predicate()
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/34009>
This commit is contained in:
parent
c627097841
commit
dcbf5f08eb
1 changed files with 6 additions and 1 deletions
|
|
@ -146,7 +146,12 @@ nouveau_zink_predicate(int fd, const char *driver)
|
|||
|
||||
bool prefer_zink = false;
|
||||
|
||||
/* enable this once zink is up to speed. */
|
||||
/* Enable Zink by default on Turing and later GPUs
|
||||
*
|
||||
* We only use Zink if if the kernel supports VMA_TILEMODE, which is needed
|
||||
* for DRM format modifiers. This also doubles as a check for a new enough
|
||||
* kernel to run NVK in general.
|
||||
*/
|
||||
struct drm_nouveau_getparam r = { .param = NOUVEAU_GETPARAM_HAS_VMA_TILEMODE };
|
||||
int ret = drmCommandWriteRead(fd, DRM_NOUVEAU_GETPARAM, &r, sizeof(r));
|
||||
if (ret == 0 && r.value == 1) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue