winsys/amdgpu: Fix build on BSD
Some BSDs don't define ENODATA.
Fixes: cf24d155
("winsys/amdgpu: Hook up guilt to amdgpu_ctx_set_sw_reset_status")
Reviewed-by: Pierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/27181>
This commit is contained in:

committed by
Marge Bot

parent
963813fbfd
commit
425ddc24b1
@@ -7,12 +7,22 @@
|
||||
*/
|
||||
|
||||
#include "amdgpu_cs.h"
|
||||
#include "util/detect_os.h"
|
||||
#include "util/os_time.h"
|
||||
#include <inttypes.h>
|
||||
#include <stdio.h>
|
||||
|
||||
#include "amd/common/sid.h"
|
||||
|
||||
/* Some BSDs don't define ENODATA (and ENODATA is replaced with different error
|
||||
* codes in the kernel).
|
||||
*/
|
||||
#if DETECT_OS_OPENBSD
|
||||
#define ENODATA ENOTSUP
|
||||
#elif DETECT_OS_FREEBSD || DETECT_OS_DRAGONFLY
|
||||
#define ENODATA ECONNREFUSED
|
||||
#endif
|
||||
|
||||
/* FENCES */
|
||||
|
||||
void amdgpu_fence_destroy(struct amdgpu_fence *fence)
|
||||
|
Reference in New Issue
Block a user