ac/gpu_info: if clock crystal frequency is 0, print an error and set 1
authorMarek Olšák <marek.olsak@amd.com>
Mon, 10 Jul 2017 14:01:28 +0000 (16:01 +0200)
committerMarek Olšák <marek.olsak@amd.com>
Mon, 17 Jul 2017 14:56:59 +0000 (10:56 -0400)
commit3d1a576fa607b5df05cbfe286ef9821ba387344d
tree2eaa7dcfb7e68d471c17fca706b6174eed85dfb9
parentd0963ef0843456f3c5ef0ae0926e11f10fa606fe
ac/gpu_info: if clock crystal frequency is 0, print an error and set 1

During bring-up, this is often 0. Prevent automatic disablement of
ARB_timer_query and demotion of the OpenGL version to 3.2 by setting
a non-zero frequency. Print an error message instead.

Reviewed-by: Nicolai Hähnle <nicolai.haehnle@amd.com>
src/amd/common/ac_gpu_info.c