radv: stop including files from mesa/main
Reviewed-by: Samuel Pitoiset <samuel.pitoiset@gmail.com> Reviewed-by: Timothy Arceri <tarceri@itsqueeze.com Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4324>
This commit is contained in:
parent
76f79db3f5
commit
013b65635f
|
@ -7034,6 +7034,11 @@ radv_get_max_anisotropy(struct radv_device *device,
|
|||
return 0;
|
||||
}
|
||||
|
||||
static inline int S_FIXED(float value, unsigned frac_bits)
|
||||
{
|
||||
return value * (1 << frac_bits);
|
||||
}
|
||||
|
||||
static void
|
||||
radv_init_sampler(struct radv_device *device,
|
||||
struct radv_sampler *sampler,
|
||||
|
|
|
@ -46,7 +46,6 @@
|
|||
#include "util/debug.h"
|
||||
#include "ac_exp_param.h"
|
||||
#include "ac_shader_util.h"
|
||||
#include "main/menums.h"
|
||||
|
||||
struct radv_blend_state {
|
||||
uint32_t blend_enable_4bit;
|
||||
|
|
|
@ -49,7 +49,6 @@
|
|||
#include "util/macros.h"
|
||||
#include "util/list.h"
|
||||
#include "util/xmlconfig.h"
|
||||
#include "main/macros.h"
|
||||
#include "vk_alloc.h"
|
||||
#include "vk_debug_report.h"
|
||||
|
||||
|
|
|
@ -33,15 +33,15 @@
|
|||
#include <stdint.h>
|
||||
#include <stdbool.h>
|
||||
#include <stdlib.h>
|
||||
#include "main/macros.h"
|
||||
#include <string.h>
|
||||
#include "amd_family.h"
|
||||
#include "util/u_memory.h"
|
||||
#include "util/u_math.h"
|
||||
|
||||
struct radeon_info;
|
||||
struct ac_surf_info;
|
||||
struct radeon_surf;
|
||||
|
||||
#define FREE(x) free(x)
|
||||
|
||||
enum radeon_bo_domain { /* bitfield */
|
||||
RADEON_DOMAIN_GTT = 2,
|
||||
RADEON_DOMAIN_VRAM = 4,
|
||||
|
|
|
@ -32,7 +32,6 @@
|
|||
#include "radv_cs.h"
|
||||
#include "sid.h"
|
||||
#include "radv_util.h"
|
||||
#include "main/macros.h"
|
||||
|
||||
static void
|
||||
si_write_harvested_raster_configs(struct radv_physical_device *physical_device,
|
||||
|
|
|
@ -37,6 +37,8 @@
|
|||
#include <unistd.h>
|
||||
|
||||
#include "util/u_atomic.h"
|
||||
#include "util/u_memory.h"
|
||||
#include "util/u_math.h"
|
||||
|
||||
#define AMDGPU_TILING_SCANOUT_SHIFT 63
|
||||
#define AMDGPU_TILING_SCANOUT_MASK 1
|
||||
|
@ -61,7 +63,7 @@ radv_amdgpu_bo_va_op(struct radv_amdgpu_winsys *ws,
|
|||
if (!(bo_flags & RADEON_FLAG_READ_ONLY))
|
||||
flags |= AMDGPU_VM_PAGE_WRITEABLE;
|
||||
|
||||
size = ALIGN(size, getpagesize());
|
||||
size = align64(size, getpagesize());
|
||||
|
||||
return amdgpu_bo_va_op_raw(ws->dev, bo, offset, size, addr,
|
||||
flags, ops);
|
||||
|
|
|
@ -29,6 +29,7 @@
|
|||
#include <pthread.h>
|
||||
#include <errno.h>
|
||||
|
||||
#include "util/u_memory.h"
|
||||
#include "ac_debug.h"
|
||||
#include "radv_radeon_winsys.h"
|
||||
#include "radv_amdgpu_cs.h"
|
||||
|
|
|
@ -26,6 +26,7 @@
|
|||
*/
|
||||
|
||||
#include "radv_null_bo.h"
|
||||
#include "util/u_memory.h"
|
||||
|
||||
static struct radeon_winsys_bo *
|
||||
radv_null_winsys_bo_create(struct radeon_winsys *_ws,
|
||||
|
|
|
@ -26,6 +26,7 @@
|
|||
*/
|
||||
|
||||
#include "radv_null_cs.h"
|
||||
#include "util/u_memory.h"
|
||||
|
||||
struct radv_null_cs {
|
||||
struct radeon_cmdbuf base;
|
||||
|
|
Loading…
Reference in New Issue