search for: nvc0_miptree_init_ms_mod

Displaying 1 result from an estimated 1 matches for "nvc0_miptree_init_ms_mod".

2014 Mar 05
1
[PATCH] nv50, nvc0: choose storage type after ms has been initialized
.../gallium/drivers/nouveau/nvc0/nvc0_miptree.c @@ -277,13 +277,13 @@ nvc0_miptree_create(struct pipe_screen *pscreen, if (pt->bind & PIPE_BIND_LINEAR) pt->flags |= NOUVEAU_RESOURCE_FLAG_LINEAR; - bo_config.nvc0.memtype = nvc0_mt_choose_storage_type(mt, compressed); - if (!nvc0_miptree_init_ms_mode(mt)) { FREE(mt); return NULL; } + bo_config.nvc0.memtype = nvc0_mt_choose_storage_type(mt, compressed); + if (unlikely(pt->flags & NVC0_RESOURCE_FLAG_VIDEO)) { nvc0_miptree_init_layout_video(mt); } else -- 1.8.3.2