summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/r600/r600_query.h
diff options
context:
space:
mode:
authorDuncan Hopkins <[email protected]>2019-07-10 14:50:16 +0100
committerErik Faye-Lund <[email protected]>2019-10-28 08:51:48 +0000
commit108ba81c959021ba894553b2c409593c7c51b7bd (patch)
tree5b4f78b1b55fbd3b8bf5d5f6b87fc3c1693df045 /src/gallium/drivers/r600/r600_query.h
parentdf11f3f2ab270c3801762b28cf6854a82639a934 (diff)
zink: fix line-width calculation
There's two things that goes wrong in this code on some drivers: 1. Rounding off the line-width to granularity can push it outside the legal range. 2. A granularity of 0.0 results in NaN, because we divide by zero. So let's make this code a bit more robust. Acked-by: Jordan Justen <[email protected]>
Diffstat (limited to 'src/gallium/drivers/r600/r600_query.h')
0 files changed, 0 insertions, 0 deletions