Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

drm/msm: Expose expanded UBWC config uapi

This adds extra parameters that affect UBWC tiling that will be used by
the Mesa implementation of VK_EXT_host_image_copy.

Signed-off-by: Connor Abbott <cwabbott0@gmail.com>
Patchwork: https://patchwork.freedesktop.org/patch/607401/
Signed-off-by: Rob Clark <robdclark@chromium.org>

authored by

Connor Abbott and committed by
Rob Clark
d7eafed3 b874638b

+8
+6
drivers/gpu/drm/msm/adreno/adreno_gpu.c
··· 379 379 case MSM_PARAM_RAYTRACING: 380 380 *value = adreno_gpu->has_ray_tracing; 381 381 return 0; 382 + case MSM_PARAM_UBWC_SWIZZLE: 383 + *value = adreno_gpu->ubwc_config.ubwc_swizzle; 384 + return 0; 385 + case MSM_PARAM_MACROTILE_MODE: 386 + *value = adreno_gpu->ubwc_config.macrotile_mode; 387 + return 0; 382 388 default: 383 389 DBG("%s: invalid param: %u", gpu->name, param); 384 390 return -EINVAL;
+2
include/uapi/drm/msm_drm.h
··· 88 88 #define MSM_PARAM_VA_SIZE 0x0f /* RO: size of valid GPU iova range (bytes) */ 89 89 #define MSM_PARAM_HIGHEST_BANK_BIT 0x10 /* RO */ 90 90 #define MSM_PARAM_RAYTRACING 0x11 /* RO */ 91 + #define MSM_PARAM_UBWC_SWIZZLE 0x12 /* RO */ 92 + #define MSM_PARAM_MACROTILE_MODE 0x13 /* RO */ 91 93 92 94 /* For backwards compat. The original support for preemption was based on 93 95 * a single ring per priority level so # of priority levels equals the #