r600g: fix crash when file in R600_TRACE doesn't exist
authorConstantine Charlamov <Hi-Angel@yandex.ru>
Sat, 24 Jun 2017 12:52:05 +0000 (15:52 +0300)
committerDave Airlie <airlied@redhat.com>
Mon, 26 Jun 2017 07:39:54 +0000 (17:39 +1000)
commitabc7b110b6f6dbd00db3633a68cc836170465d91
tree8c4f08632894d63f333cbdab8888d88e450744d5
parent3d466f3e9f76c91083f0cfbb8a76148bdb0d52a3
r600g: fix crash when file in R600_TRACE doesn't exist

…and print error in such case. Which probably is not a rare event btw
because fopen doesn't expand ~ to $HOME.

Also get rid of unused "bool ret" variable.

Signed-off-by: Constantine Kharlamov <Hi-Angel@yandex.ru>
Signed-off-by: Dave Airlie <airlied@redhat.com>
src/gallium/drivers/r600/r600_hw_context.c