diff options
author | Dave Airlie <airlied@redhat.com> | 2017-10-11 10:16:51 +1000 |
---|---|---|
committer | Dave Airlie <airlied@redhat.com> | 2017-10-11 10:43:36 +1000 |
commit | 9d4aec6dbb2f9928e6ba13454e94d772b9a7e43a (patch) | |
tree | ec661a4a05f17f78d8b2d711aebf73e2f1506b1f | |
parent | 772955db4b29ee515d9553ebbaff49905effc430 (diff) |
arb_shader_atomic_counter_ops: declare counters to fix undefined behaviour.
It's undefined (including crashing) behaviour to use atomic counters
without having bound enough storage for them. This fixes this test
to bind the storage for the counters it uses.
Reviewed-by: Timothy Arceri <tarceri@itsqueeze.com>
Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
-rw-r--r-- | tests/spec/arb_shader_atomic_counter_ops/execution/all_touch_test.shader_test | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/spec/arb_shader_atomic_counter_ops/execution/all_touch_test.shader_test b/tests/spec/arb_shader_atomic_counter_ops/execution/all_touch_test.shader_test index 7fb3cbfcc..913fa6b1c 100644 --- a/tests/spec/arb_shader_atomic_counter_ops/execution/all_touch_test.shader_test +++ b/tests/spec/arb_shader_atomic_counter_ops/execution/all_touch_test.shader_test @@ -68,5 +68,6 @@ void main() } [test] +atomic counters 8 draw rect -1 -1 2 2 probe all rgba 0.0 1.0 0.0 1.0 |