nvc0: use NV_VRAM_DOMAIN() macro
[mesa.git] / src / gallium / drivers / nouveau / nv50 / nv50_miptree.c
index 10cebb17eee3b64995fb6000474781e0111ff0ce..f15d8f3ecb69ff40929b7a5372aef1fd4bb52aef 100644 (file)
@@ -377,7 +377,7 @@ nv50_miptree_create(struct pipe_screen *pscreen,
    if (!bo_config.nv50.memtype && (pt->bind & PIPE_BIND_SHARED))
       mt->base.domain = NOUVEAU_BO_GART;
    else
-      mt->base.domain = NOUVEAU_BO_VRAM;
+      mt->base.domain = NV_VRAM_DOMAIN(nouveau_screen(pscreen));
 
    bo_flags = mt->base.domain | NOUVEAU_BO_NOSNOOP;
    if (mt->base.base.bind & (PIPE_BIND_CURSOR | PIPE_BIND_DISPLAY_TARGET))