mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-28 11:18:45 +07:00
26c0b26dcd
The files a3xx_gpu.c and a4xx_gpu.c have ifdefs for the OCMEM support that was missing upstream. Add two new functions (adreno_gpu_ocmem_init and adreno_gpu_ocmem_cleanup) that removes some duplicated code. Signed-off-by: Brian Masney <masneyb@onstation.org> Reviewed-by: Jordan Crouse <jcrouse@codeaurora.org> Tested-by: Gabriel Francisco <frc.gabrielgmail.com> Signed-off-by: Rob Clark <robdclark@chromium.org>
24 lines
487 B
C
24 lines
487 B
C
/* SPDX-License-Identifier: GPL-2.0-only */
|
|
/* Copyright (c) 2014 The Linux Foundation. All rights reserved.
|
|
*/
|
|
#ifndef __A4XX_GPU_H__
|
|
#define __A4XX_GPU_H__
|
|
|
|
#include "adreno_gpu.h"
|
|
|
|
/* arrg, somehow fb.h is getting pulled in: */
|
|
#undef ROP_COPY
|
|
#undef ROP_XOR
|
|
|
|
#include "a4xx.xml.h"
|
|
|
|
struct a4xx_gpu {
|
|
struct adreno_gpu base;
|
|
|
|
/* if OCMEM is used for GMEM: */
|
|
struct adreno_ocmem ocmem;
|
|
};
|
|
#define to_a4xx_gpu(x) container_of(x, struct a4xx_gpu, base)
|
|
|
|
#endif /* __A4XX_GPU_H__ */
|