i965: check if upload is 0 explicitely, when downsizing a format
authorAndres Gomez <agomez@igalia.com>
Thu, 1 Feb 2018 15:15:14 +0000 (17:15 +0200)
committerAndres Gomez <agomez@igalia.com>
Fri, 2 Feb 2018 14:32:30 +0000 (16:32 +0200)
commit4761a8fea604b11e31c4e044ffc6d3d0b068a621
tree851bbf670e71caa1f2234f227f760d935b855681
parent51d36f5e02d7083e52b5617bf44de0105c611db4
i965: check if upload is 0 explicitely, when downsizing a format

downsize_format_if_needed takes an integer as number of uploads
parameter. Hence, let's do an integer comparation instead of a boolean
check, since that is confusing.

Since we are at it, fix a couple of wrongly tabbed indents.

Cc: Alejandro Piñeiro <apinheiro@igalia.com>
Cc: Kenneth Graunke <kenneth@whitecape.org>
Signed-off-by: Andres Gomez <agomez@igalia.com>
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
Reviewed-by: Alejandro Piñeiro <apinheiro@igalia.com>
src/mesa/drivers/dri/i965/genX_state_upload.c