winsys/radeon: Always report at least 1 compute unit
authorTom Stellard <thomas.stellard@amd.com>
Fri, 5 Dec 2014 23:59:10 +0000 (23:59 +0000)
committerTom Stellard <thomas.stellard@amd.com>
Mon, 8 Dec 2014 22:20:50 +0000 (17:20 -0500)
commit0e1c085f17fdd774ff6b060dd03422e74ea3e2cc
tree6a8d954778fb507c8c4c76be4f9cff8980bd249f
parent67dcbcd92cb9877a04747d6cf7fef14c2b8af8b3
winsys/radeon: Always report at least 1 compute unit

All uses of this require that the value be at least one, so it's
easier to report at least one than having to wrap all uses
in MAX2(max_compute_units, 1).

Reviewed-by: Marek Olšák <marek.olsak@amd.com>
src/gallium/drivers/radeon/r600_pipe_common.c
src/gallium/winsys/radeon/drm/radeon_drm_winsys.c