nvc0: handle NULL pointer in nvc0_get_compute_param()
authorSamuel Pitoiset <samuel.pitoiset@gmail.com>
Tue, 3 Nov 2015 18:32:49 +0000 (19:32 +0100)
committerSamuel Pitoiset <samuel.pitoiset@gmail.com>
Tue, 3 Nov 2015 21:16:45 +0000 (22:16 +0100)
commite640ba41ed1eaeecc735ebd18fa62f05577830cb
treec81f7fb824db24d31e14705d35cd5cb1503187e9
parentdde33fc23c4ef8b8e02fb5768161fdaa078847d5
nvc0: handle NULL pointer in nvc0_get_compute_param()

To get the size (in bytes) of a compute parameter, clover first calls
get_compute_param() with a NULL data pointer. The RET() macro is based
on nv50.

Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Reviewed-by: Ilia Mirkin <imirkin@alum.mit.edu>
src/gallium/drivers/nouveau/nvc0/nvc0_screen.c