mesa/src
Alexandre Courbot f22406837f nouveau: support for custom VRAM domains
Some GPUs (e.g. GK20A, GM20B) do not embed VRAM of their own and use
the system memory as a backend instead. For such systems, allocating
objects in VRAM results in errors since the kernel will not allow
VRAM objects allocations.

This patch adds a vram_domain member to struct nouveau_screen that can
optionally be initialized to an alternative domain to use for VRAM
allocations. If left untouched, NOUVEAU_BO_VRAM will be used for
systems that embed VRAM, and NOUVEAU_BO_GART will be used for VRAM-less
systems.

Code that uses GPU objects is then expected to use the NV_VRAM_DOMAIN()
macro in place of NOUVEAU_BO_VRAM to ensure correct behavior on
VRAM-less chips.

Signed-off-by: Alexandre Courbot <acourbot@nvidia.com>
Reviewed-by: Ilia Mirkin <imirkin@alum.mit.edu>
Reviewed-by: Martin Peres <martin.peres@free.fr>
2015-06-22 01:00:02 -04:00
..
egl egl/x11: Set version of swrastLoader to 2 2015-06-18 12:57:59 +01:00
gallium nouveau: support for custom VRAM domains 2015-06-22 01:00:02 -04:00
gbm gbm: Add GBM_BO_USE_LINEAR flag 2015-04-16 15:49:15 +09:00
getopt
glsl glsl: fix formatting glitch in _mesa_print_ir() 2015-06-19 16:46:29 -06:00
glx glx: fix Scons build 2015-05-22 14:38:33 -06:00
gtest Fix a few typos 2015-04-27 17:28:29 +03:00
hgl glapi/hgl: Drop extern "C" as it was added to glapi 2015-05-13 15:26:29 -04:00
loader mesa: build xmlconfig to a separate static library 2015-06-12 15:32:18 +01:00
mapi mesa: Constants and functions for ARB_framebuffer_no_attachments 2015-06-17 14:39:02 +03:00
mesa glsl_to_tgsi: add SVIEW decl support 2015-06-21 07:52:22 -04:00
util util/list: add list_first/last_entry 2015-06-21 07:52:36 -04:00
Makefile.am mesa; add a dummy _mesa_error_no_memory() symbol to libglsl_util 2015-06-12 15:32:18 +01:00
SConscript scons: Don't build loader on Windows. 2015-03-25 10:42:35 +00:00