summaryrefslogtreecommitdiffstats
path: root/src/mesa/program/prog_optimize.h
diff options
context:
space:
mode:
authorEduardo Lima Mitev <[email protected]>2015-12-16 17:32:19 +0100
committerEduardo Lima Mitev <[email protected]>2016-03-03 15:14:05 +0100
commit25ee5c60dcb49e68c80eb5157769ccb655d647fa (patch)
tree91dec6d0335f55b52108e1576d3002191dc2efda /src/mesa/program/prog_optimize.h
parent1f0b2ce8ec139cfb54db014949db0345461aff94 (diff)
mesa/formatquery: Remove tracking of number of elements in the response
Currently, the number of integers returned in the response to GetInternalFormativ is being tracked by a 'count' variable. This is so only the modified elements from the temporary buffer are copied into the original user buffer. However, with the introduction of ARB_internalformat_query2, keeping track of 'count' would complicate the code a lot, considering the high number of queries. So, we propose to forget about tracking count, and move all the 16 elements in the temporary buffer, back to the user buffer (clamped to user buffer size of course). This is basically a trade-off between performance and code clarity. Reviewed-by: Dave Airlie <[email protected]>
Diffstat (limited to 'src/mesa/program/prog_optimize.h')
0 files changed, 0 insertions, 0 deletions