loader/nouveau: Fix the comment in nouveau_zink_predicate()
Some checks are pending
macOS-CI / macOS-CI (dri) (push) Waiting to run
macOS-CI / macOS-CI (xlib) (push) Waiting to run

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/34009>
This commit is contained in:
Faith Ekstrand 2025-03-11 14:28:56 -05:00 committed by Marge Bot
parent c627097841
commit dcbf5f08eb

View file

@ -146,7 +146,12 @@ nouveau_zink_predicate(int fd, const char *driver)
bool prefer_zink = false; 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 }; struct drm_nouveau_getparam r = { .param = NOUVEAU_GETPARAM_HAS_VMA_TILEMODE };
int ret = drmCommandWriteRead(fd, DRM_NOUVEAU_GETPARAM, &r, sizeof(r)); int ret = drmCommandWriteRead(fd, DRM_NOUVEAU_GETPARAM, &r, sizeof(r));
if (ret == 0 && r.value == 1) { if (ret == 0 && r.value == 1) {