search for: nouveau_cap_hw_idxbuf

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

2009 Dec 30
0
Add NOUVEAU_VTXIDX_IN_VRAM variable to put vertex/index buffers in VRAM
..._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) + vram_hack_default = 1; + vram_hack = debug_get_bool_option("NOUVE...