Skip to content

Commit

Permalink
Fix build error on Android u
Browse files Browse the repository at this point in the history
The mesa24.0.1 build has issue on adnroid u.

Tracked-On: OAM-117273
Signed-off-by: zhonghuis <[email protected]>
  • Loading branch information
zhonghuis authored and yhe39 committed Apr 14, 2024
1 parent 17a6b4f commit 7116856
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions src/intel/common/intel_check.c
Original file line number Diff line number Diff line change
Expand Up @@ -69,15 +69,15 @@ is_target_process(char *target)
return false;
}

bool intel_is_dgpu_render() {
bool intel_is_dgpu_render(void) {
pid_t process_id = getpid();
char process_name[BUF_SIZE];

get_pid_name(process_id, process_name);
return (use_dgpu_render(process_name) || is_target_process(process_name));
}

bool intel_lower_ctx_priority()
bool intel_lower_ctx_priority(void)
{
pid_t process_id = getpid();
char process_name[BUF_SIZE];
Expand Down
4 changes: 2 additions & 2 deletions src/intel/common/intel_check.h
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
#ifdef __cplusplus
extern "C" {
#endif
bool intel_is_dgpu_render();
bool intel_lower_ctx_priority();
bool intel_is_dgpu_render(void);
bool intel_lower_ctx_priority(void);
#ifdef __cplusplus
}
#endif
Expand Down
2 changes: 1 addition & 1 deletion src/intel/vulkan/i915/anv_device.c
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
#include "common/i915/intel_gem.h"

#include "drm-uapi/i915_drm.h"

#include "common/intel_check.h"
static int
vk_priority_to_i915(VkQueueGlobalPriorityKHR priority)
{
Expand Down

0 comments on commit 7116856

Please sign in to comment.