drm/intel
Anuj Phogat 5c68f9f6f9 i965/gen9: Pass alignment as function parameter in drm_intel_gem_bo_alloc_internal()
In case of YF/YS tiled buffers libdrm need not know about the tiling
format because these buffers don't have hardware support to be tiled
or detiled through a fenced region. But, libdrm still need to know
about buffer alignment restrictions because kernel uses it when
resolving the relocation.

Mesa uses drm_intel_gem_bo_alloc_for_render() to allocate Yf/Ys buffers.
So, use the passed alignment value in this function to initialize the
align variable in drm_intel_bo. Note that we continue ignoring the
alignment value passed to drm_intel_gem_bo_alloc() to follow the
previous behavior.

V2: Add a condition to avoid allocation from cache. (Ben)
V3: Make no changes in cache allocation strategy. Just update the alignment.
    Update the aperture size estimate including the alignment. (Ben, Chris)
V4: Move aperture size adjustments inside drm_intel_bo_gem_set_in_aperture_size()
    Don't split sentences across the one-line header and the changelog. (Chris)

Signed-off-by: Anuj Phogat <anuj.phogat@gmail.com>
Reviewed-by: Chris Wilson <chris@chris-wilson.co.uk>
2015-07-06 15:36:59 -07:00
..
tests intel-decode: Fix gen6 HIER_DEPTH_BUFFER decoding 2013-04-04 09:59:20 +02:00
.gitignore intel: Add a regression test program for intel_decode.c. 2012-01-04 14:49:44 -08:00
Android.mk android: remove explicit include to libpciaccess 2015-03-26 20:37:10 +00:00
Makefile.am configure: request/set the compiler in C99 mode 2015-04-28 11:20:52 +01:00
Makefile.sources libdrm, freedreno, intel, nouveau, radeon: add Makefile.sources 2014-09-01 16:06:01 +01:00
intel-symbol-check intel: add symbols test 2015-04-28 11:19:15 +01:00
intel_aub.h intel/aub: Sync the AUB defines with mesa's 2013-06-10 17:51:17 +01:00
intel_bufmgr.c drm: remove drm_public macro 2015-04-28 11:19:15 +01:00
intel_bufmgr.h intel: Export total subslice and EU counts 2015-03-18 18:15:37 +00:00
intel_bufmgr_fake.c drm: use c99 __func__ over __FUNCTION__ 2015-04-28 11:21:02 +01:00
intel_bufmgr_gem.c i965/gen9: Pass alignment as function parameter in drm_intel_gem_bo_alloc_internal() 2015-07-06 15:36:59 -07:00
intel_bufmgr_priv.h intel: Add support for userptr objects 2014-09-17 12:15:57 +01:00
intel_chipset.h intel: Add the Broxton PCI IDs 2015-05-18 16:24:21 +01:00
intel_debug.h intel: shared header for shader debugging 2011-08-01 14:44:58 -07:00
intel_decode.c drm: remove drm_public macro 2015-04-28 11:19:15 +01:00
libdrm_intel.pc.in intel: Update package name and description in libdrm_intel.pc 2013-08-30 12:10:50 -04:00
mm.c drm: rename libdrm{,_macros}.h 2015-04-28 11:19:15 +01:00
mm.h drm: rename libdrm{,_macros}.h 2015-04-28 11:19:15 +01:00
test_decode.c drm: rename libdrm{,_macros}.h 2015-04-28 11:19:15 +01:00