Marek Olšák
84652721b9
ac: add radeon_info::name
...
Reviewed-by: Timothy Arceri <tarceri@itsqueeze.com >
2018-08-14 21:20:31 -04:00
Marek Olšák
a2451a4c23
ac/gpu_info: add radeon_info::num_tcc_blocks
...
The values for the radeon winsys were copied from the kernel driver.
Tested-by: Dieter Nützel <Dieter@nuetzel-hh.de >
2018-06-19 12:52:28 -04:00
Marek Olšák
a2e9d9b4c1
ac/gpu_info: add has_read_registers_query
...
Reviewed-by: Nicolai Hähnle <nicolai.haehnle@amd.com >
2018-05-10 18:40:11 -04:00
Marek Olšák
9b1fdfc541
ac/gpu_info: add has_2d_tiling
...
Reviewed-by: Nicolai Hähnle <nicolai.haehnle@amd.com >
2018-05-10 18:40:10 -04:00
Marek Olšák
d26696283d
ac/gpu_info: add has_sparse_vm_mappings
...
Reviewed-by: Nicolai Hähnle <nicolai.haehnle@amd.com >
2018-05-10 18:40:08 -04:00
Marek Olšák
125adc92ad
ac/gpu_info: add has_unaligned_shader_loads
...
Reviewed-by: Nicolai Hähnle <nicolai.haehnle@amd.com >
2018-05-10 18:40:07 -04:00
Marek Olšák
e9c08bc658
ac/gpu_info: add has_indirect_compute_dispatch
...
Reviewed-by: Nicolai Hähnle <nicolai.haehnle@amd.com >
2018-05-10 18:40:03 -04:00
Marek Olšák
64265ac8d5
ac/gpu_info: add kernel_flushes_tc_l2_after_ib
...
Reviewed-by: Nicolai Hähnle <nicolai.haehnle@amd.com >
2018-05-10 18:40:01 -04:00
Marek Olšák
14c5a93bfa
ac/gpu_info: add has_format_bc1_through_bc7
...
Reviewed-by: Nicolai Hähnle <nicolai.haehnle@amd.com >
2018-05-10 18:40:00 -04:00
Marek Olšák
2bd2c173e8
ac/gpu_info: add has_eqaa_surface_allocator
...
Reviewed-by: Nicolai Hähnle <nicolai.haehnle@amd.com >
2018-05-10 18:39:58 -04:00
Marek Olšák
e720cb6135
radeonsi: clean up the reset status query implementation
...
Reviewed-by: Nicolai Hähnle <nicolai.haehnle@amd.com >
2018-05-10 18:39:57 -04:00
Marek Olšák
3060f62340
ac/gpu_info: add has_bo_metadata
...
Reviewed-by: Nicolai Hähnle <nicolai.haehnle@amd.com >
2018-05-10 18:39:56 -04:00
Marek Olšák
09f1bab483
ac/gpu_info: add si_TA_CS_BC_BASE_ADDR_allowed
...
Reviewed-by: Nicolai Hähnle <nicolai.haehnle@amd.com >
2018-05-10 18:39:54 -04:00
Marek Olšák
8b58a14ef7
ac/gpu_info: add htile_cmask_support_1d_tiling
...
Reviewed-by: Nicolai Hähnle <nicolai.haehnle@amd.com >
2018-05-10 18:39:53 -04:00
Marek Olšák
b81149e258
ac/gpu_info: add kernel_flushes_hdp_before_ib
...
Reviewed-by: Nicolai Hähnle <nicolai.haehnle@amd.com >
2018-05-10 18:39:47 -04:00
Dave Airlie
a90c9f33cf
ac/radv/radeonsi: refactor harvest config register getters.
...
This refactors the code out to share it between radv and radeonsi.
Reviewed-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl >
Acked-by: Nicolai Hähnle <nicolai.haehnle@amd.com >
Reviewed-by: Samuel Pitoiset <samuel.pitoiset@gmail.com >
2018-04-24 09:08:34 +10:00
Dave Airlie
f77caa7411
ac/radv/radeonsi: refactor max simd waves into common code.
...
Reviewed-by: Nicolai Hähnle <nicolai.haehnle@amd.com >
Reviewed-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl >
2018-04-24 09:08:33 +10:00
Dave Airlie
899df55ee0
ac/radv/radeonsi: refactor raster_config default values getters.
...
This just makes this common code between the two drivers.
Reviewed-by: Nicolai Hähnle <nicolai.haehnle@amd.com >
Reviewed-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl >
2018-04-24 09:07:51 +10:00
Dave Airlie
5e2ef28390
ac/info: move gs table depth to common code.
...
Reviewed-by: Nicolai Hähnle <nicolai.haehnle@amd.com >
Reviewed-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl >
2018-04-24 09:05:38 +10:00
Marek Olšák
5d91c2ccea
ac/gpu_info: print GB_ADDR_CONFIG
2018-04-02 13:10:37 -04:00
Marek Olšák
b1f33086ec
ac/gpu_info: reorder the fields and print them nicely
2018-04-02 13:10:37 -04:00
Marek Olšák
a0a96819e1
ac/gpu_info: rename has_virtual_memory -> r600_has_virtual_memory
2018-04-02 13:10:37 -04:00
Marek Olšák
769603564e
radeonsi: don't reallocate on DMABUF export if local BOs are disabled
2018-03-26 19:22:12 -04:00
Marek Olšák
78ef16e2f9
winsys/amdgpu: query GDS info
...
Reviewed-by: Alex Deucher <alexander.deucher@amd.com >
2018-03-08 14:58:16 -05:00
Marek Olšák
75c5d25f0f
radeonsi: align command buffer starting address to fix some Raven hangs
...
Cc: 17.3 18.0 <mesa-stable@lists.freedesktop.org >
Reviewed-by: Christian König <christian.koenig@amd.com >
Reviewed-by: Alex Deucher <alexander.deucher@amd.com >
2018-03-08 14:58:16 -05:00
James Zhu
f0ad908e79
amd/common:add uvd hevc enc support check in hw query
...
Based on amdgpu hardware query information to check if UVD hevc enc support
Signed-off-by: James Zhu <James.Zhu@amd.com >
Reviewed-by: Marek Olšák <marek.olsak@amd.com >
2018-02-21 13:53:38 -05:00
Marek Olšák
0977b7f7b3
ac: query high bits of 32-bit address space
2018-02-17 04:51:58 +01:00
Bas Nieuwenhuizen
79724c89f8
ac: rename has_sync_file to has_fence_to_handle.
...
sync_files are in linux since 4.7, while the amdgpu fence_to_handle
ioctl is only in 4.15.
In particular we don't need it for sync_file in radv, because
everything happens via syncobjs, which got support earlier than
fence_to_handle.
Reviewed-by: Marek Olšák <marek.olsak@amd.com >
2018-01-04 01:12:09 +01:00
Marek Olšák
4f19cc82f9
ac: rename has_syncobj_wait -> has_syncobj_wait_for_submit
...
Reviewed-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl >
2018-01-04 00:07:45 +01:00
Bas Nieuwenhuizen
b308bb8773
amd/common: Add detection of the syncobj wait/signal/reset ioctls.
...
First amdgpu bump after inclusion was 20 (which was done for local BOs).
Reviewed-by: Dave Airlie <airlied@redhat.com >
2017-12-18 09:31:06 +01:00
Marek Olšák
e4cce7dbba
radeonsi: dismantle si_common_screen_init/destroy
...
Reviewed-by: Nicolai Hähnle <nicolai.haehnle@amd.com >
2017-11-29 18:21:30 +01:00
Andres Rodriguez
92724338ba
radv: Expose VK_EXT_global_priority
...
Expose the extension string as supported
Signed-off-by: Andres Rodriguez <andresx7@gmail.com >
Reviewed-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl >
2017-10-21 01:01:44 +02:00
Marek Olšák
11adea4b24
ac: add radeon_info::has_sync_file
...
Reviewed-by: Nicolai Hähnle <nicolai.haehnle@amd.com >
2017-10-12 21:04:56 +02:00
Nicolai Hähnle
b8c6e88848
amd/common: get ME/PFP/CE firmware feature versions as well
...
Reviewed-by: Marek Olšák <marek.olsak@amd.com >
2017-09-13 18:25:06 +02:00
Marek Olšák
d500c9b060
Revert "radeonsi: get the raster config from AMDGPU on SI"
...
This reverts commit fc99cb3c9e
.
"The performance went down from 64.7 to 51.4 fps in Valley and from 30.8 to
25.1 fps in Heaven on Radeon HD 7970. Other games seem to have also a 10-25%
performance decrease."
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=102429
It looks like we can't use the raster config values from the kernel.
2017-08-27 22:27:23 +02:00
Marek Olšák
fc99cb3c9e
radeonsi: get the raster config from AMDGPU on SI
...
Not sure yet if we wanna do this on CIK and VI too.
Reviewed-by: Nicolai Hähnle <nicolai.haehnle@amd.com >
2017-08-24 23:54:55 +02:00
Andres Rodriguez
6130c8e6e7
ac/gpu: add driver/device UUID query helpers
...
We need vulkan and gl to produce the same UUIDs. Therefore we should
keep the mechanism to compute these in a common location to guarantee
they are updated in lockstep.
Signed-off-by: Andres Rodriguez <andresx7@gmail.com >
Reviewed-by: Marek Olšák <marek.olsak@amd.com >
2017-08-06 12:42:07 +10:00
Dave Airlie
80562f2b77
ac/gpu: add code to detect if kernel supports sync objects.
...
Reviewed-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl >
Signed-off-by: Dave Airlie <airlied@redhat.com >
2017-07-21 21:31:54 +01:00
Dave Airlie
edf2acbeb1
radv: add support for using addrlib max alignment.
...
Rather than using 64k, use what addrlib returns as the base
alignment for vulkan allocations.
Reviewed-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl >
Signed-off-by: Dave Airlie <airlied@redhat.com >
2017-07-09 22:17:59 +01:00
Emil Velikov
84bf7e5ad6
ac: resolve conflicts introduced with "ac: remove amdgpu.h dependency"
...
The commit did not add the relevant includes - in particular
stdint.h and stdbool.h for the respective standard types.
At the same time, the amdgpu_device_handle typedef redeclaration was
off.
Fixes: 81945ded0d
("ac: remove amdgpu.h dependency")
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=101471
Cc: Mark Janes <mark.a.janes@intel.com >
Cc: Gregor Münch <gr.muench@gmail.com >
Reported-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl >
Reported-by: Mark Janes <mark.a.janes@intel.com >
Reported-by: Gregor Münch <gr.muench@gmail.com >
Signed-off-by: Emil Velikov <emil.velikov@collabora.com >
Reviewed-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl >
Tested-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl >
2017-06-17 11:37:51 +01:00
Emil Velikov
81945ded0d
ac: remove amdgpu.h dependency
...
Add a couple of forward declarations and drop the amdgpu.h requirement.
With this we can build the r300 and r600 drivers without the need for
amdgpu.
v2:
- Add amdgpu.h include in the C file (Marek)
- Add a comment about pre C11 typedef redeclaration warning (Eric)
Cc: Nicolai Hähnle <nicolai.haehnle@amd.com >
Cc: Marek Olšák <marek.olsak@amd.com >
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=101189
Signed-off-by: Emil Velikov <emil.velikov@collabora.com >
2017-06-16 12:41:44 +01:00
Leo Liu
c23ffafc50
radeon: rename has_uvd info to has_hw_decode
...
Signed-off-by: Leo Liu <leo.liu@amd.com >
Reviewed-by: Christian König <christian.koenig@amd.com >
2017-05-25 11:40:20 -04:00
Christian König
5318870f54
winsys/amdgpu: align VA allocations to fragment size v2
...
BOs larger than the minimum fragment size should have their VA
alignet to at least the fragment size for optimal performance.
v2: drop unused leftover from initial implementation
Signed-off-by: Christian König <christian.koenig@amd.com >
Reviewed-by: Marek Olšák <marek.olsak@amd.com >
2017-05-24 10:32:19 +02:00
Nicolai Hähnle
70215a23c6
ac: add missing extern "C" guards
...
Reviewed-by: Marek Olšák <marek.olsak@amd.com >
2017-05-18 11:48:53 +02:00
Nicolai Hähnle
6c01c4b907
ac: add radeon_info::num_{sdma,compute}_rings
...
Vulkan needs them.
Reviewed-by: Marek Olšák <marek.olsak@amd.com >
2017-05-18 11:48:53 +02:00
Nicolai Hähnle
988c866212
ac/radeonsi: move radeon_info initialization to amd/common
...
v2: update Android.common.mk (Emil)
Reviewed-by: Marek Olšák <marek.olsak@amd.com >
2017-05-18 11:48:52 +02:00
Nicolai Hähnle
de9dd4f9f1
ac/radeonsi: move struct radeon_info to ac_gpu_info.h
...
Reviewed-by: Marek Olšák <marek.olsak@amd.com >
2017-05-18 11:48:52 +02:00