diff options
author | Nicolai Hähnle <[email protected]> | 2016-04-22 21:57:51 -0500 |
---|---|---|
committer | Nicolai Hähnle <[email protected]> | 2016-05-02 11:37:55 -0500 |
commit | 169ace5636defc032ed2a835b5ea7c55631b930f (patch) | |
tree | 90774cfa8c939d042e6df4e3d756e867e891a510 /src/gallium/drivers/radeonsi | |
parent | cf6dadb00b93b828e8cc95e8136d4c2013d76e40 (diff) |
radeonsi: correct NULL-pointer check in si_upload_const_buffer
Cc: "11.1 11.2" <[email protected]>
Reviewed-by: Bas Nieuwenhuizen <[email protected]>
Reviewed-by: Marek Olšák <[email protected]>
Diffstat (limited to 'src/gallium/drivers/radeonsi')
-rw-r--r-- | src/gallium/drivers/radeonsi/si_descriptors.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gallium/drivers/radeonsi/si_descriptors.c b/src/gallium/drivers/radeonsi/si_descriptors.c index 27f2a7412e6..b48160555f0 100644 --- a/src/gallium/drivers/radeonsi/si_descriptors.c +++ b/src/gallium/drivers/radeonsi/si_descriptors.c @@ -783,7 +783,7 @@ void si_upload_const_buffer(struct si_context *sctx, struct r600_resource **rbuf u_upload_alloc(sctx->b.uploader, 0, size, 256, const_offset, (struct pipe_resource**)rbuffer, &tmp); - if (rbuffer) + if (*rbuffer) util_memcpy_cpu_to_le32(tmp, ptr, size); } |