radeonsi: use util_strchrnul() to fix android build error
Android Bionic does not support strchrnul() string function, gallium auxiliary util/u_string.h provides util_strchrnul() This change avoids the following building error: external/mesa/src/gallium/drivers/radeonsi/si_shader.c:3863: error: undefined reference to 'strchrnul' collect2: error: ld returned 1 exit status Cc: mesa-stable@lists.freedesktop.org Signed-off-by: Emil Velikov <emil.velikov@collabora.com>
This commit is contained in:
parent
952720ccee
commit
e09d04cd56
|
@ -39,6 +39,7 @@
|
||||||
#include "radeon/radeon_llvm_emit.h"
|
#include "radeon/radeon_llvm_emit.h"
|
||||||
#include "util/u_memory.h"
|
#include "util/u_memory.h"
|
||||||
#include "util/u_pstipple.h"
|
#include "util/u_pstipple.h"
|
||||||
|
#include "util/u_string.h"
|
||||||
#include "tgsi/tgsi_parse.h"
|
#include "tgsi/tgsi_parse.h"
|
||||||
#include "tgsi/tgsi_build.h"
|
#include "tgsi/tgsi_build.h"
|
||||||
#include "tgsi/tgsi_util.h"
|
#include "tgsi/tgsi_util.h"
|
||||||
|
@ -4995,7 +4996,7 @@ static void si_shader_dump_disassembly(const struct radeon_shader_binary *binary
|
||||||
|
|
||||||
line = binary->disasm_string;
|
line = binary->disasm_string;
|
||||||
while (*line) {
|
while (*line) {
|
||||||
p = strchrnul(line, '\n');
|
p = util_strchrnul(line, '\n');
|
||||||
count = p - line;
|
count = p - line;
|
||||||
|
|
||||||
if (count) {
|
if (count) {
|
||||||
|
|
Loading…
Reference in New Issue