Displaying 1 result from an estimated 1 matches for "nouveau_cap_hw_vtxbuf".
Did you mean:
nouveau_cap_hw_idxbuf
2009 Dec 30
0
Add NOUVEAU_VTXIDX_IN_VRAM variable to put vertex/index buffers in VRAM
...7,54 @@ nouveau_screen_bo_skel(struct pipe_screen *pscreen, struct nouveau_bo *bo,
return pb;
}
+static void
+nouveau_screen_bo_init(struct nouveau_screen* screen)
+{
+ screen->vertex_buffer_flags = 0;
+ screen->index_buffer_flags = 0;
+ if(screen->base.get_param(&screen->base, NOUVEAU_CAP_HW_VTXBUF) || screen->base.get_param(&screen->base, NOUVEAU_CAP_HW_IDXBUF))
+ {
+ int vram_hack_default = 0;
+ int vram_hack;
+ // TODO: add other cards that may need this hack.
+ // It may also depend on the specific card, CPU or AGP/PCIe chipset.
+ if(screen->device->chipset == 0x49)
+...