diff options
author | Julien Isorce <[email protected]> | 2017-03-23 13:34:07 +0000 |
---|---|---|
committer | Julien Isorce <[email protected]> | 2017-03-28 17:54:15 +0100 |
commit | c5fe99eec2d728ddd07115f43f274c07fa2d69b5 (patch) | |
tree | a6445fd04fd550455cc7404d40c70f5a2a9abcc9 /m4/ax_check_gnu_make.m4 | |
parent | 749cf3be6e18d2595123c9ae7f8fd262f15a02db (diff) |
r600g: check NULL return from u_upload_alloc
Like done in si_state_draw.c::si_draw_vbo
u_upload_alloc can fail, i.e. set output param *ptr to NULL, for 2 reasons:
alloc fails or map fails. For both there is already a fprintf/stderr in
radeon_create_bo and radeon_bo_do_map.
In src/gallium/drivers/ it is a common usage to just avoid to crash by doing
a silent check. But defer fprintf where the error comes from, libdrm calls.
Signed-off-by: Julien Isorce <[email protected]>
Reviewed-by: Marek Olšák <[email protected]>
Diffstat (limited to 'm4/ax_check_gnu_make.m4')
0 files changed, 0 insertions, 0 deletions