summaryrefslogtreecommitdiffstats
path: root/src/mesa/drivers
diff options
context:
space:
mode:
authorLionel Landwerlin <[email protected]>2017-04-14 00:07:47 -0700
committerLionel Landwerlin <[email protected]>2017-06-19 22:11:00 +0100
commita26f8d99a6e00315e00ddb0b05fbb4cb4532c7e1 (patch)
tree454e1765ef0f6d9d840b04d852563626ec577e4d /src/mesa/drivers
parent5f2fe9302cf5f31bd979de85fa38d2b04f6e8259 (diff)
i965: perf: fix codegen with single operand equation
We did support single value operand equations, but not single variable operand ones. In particular we were failing on "$Sampler0Bottleneck". Signed-off-by: Lionel Landwerlin <[email protected]> Reviewed-by: Kenneth Graunke <[email protected]>
Diffstat (limited to 'src/mesa/drivers')
-rw-r--r--src/mesa/drivers/dri/i965/brw_oa.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/mesa/drivers/dri/i965/brw_oa.py b/src/mesa/drivers/dri/i965/brw_oa.py
index bf950b140da..254c512a7da 100644
--- a/src/mesa/drivers/dri/i965/brw_oa.py
+++ b/src/mesa/drivers/dri/i965/brw_oa.py
@@ -214,7 +214,9 @@ def output_rpn_equation_code(set, counter, equation, counter_vars):
value = stack[-1]
if value in hw_vars:
- value = hw_vars[value];
+ value = hw_vars[value]
+ if value in counter_vars:
+ value = read_funcs[value[1:]] + "(brw, query, accumulator)"
c("\nreturn " + value + ";")