diff options
author | Jan Vesely <[email protected]> | 2014-01-16 20:22:14 -0500 |
---|---|---|
committer | Francisco Jerez <[email protected]> | 2014-01-22 13:30:35 +0100 |
commit | 6ec210989fa10847091f06fcfcab77dd07618dff (patch) | |
tree | fba6aa572b036a7880536a97cc35d242eb5ac9cd /src/glsl/ast_to_hir.cpp | |
parent | 6caf34b97e5d22f5910695e30941bea3d0bf2e46 (diff) |
clover: Don't crash on NULL global buffer objects.
Specs say "If the argument is a buffer object, the arg_value
pointer can be NULL or point to a NULL value in which case a NULL
value will be used as the value for the argument declared as a
pointer to __global or __constant memory in the kernel."
So don't crash when somebody does that.
v2: Insert NULL into input buffer instead of buffer handle pair
Fix constant_argument too
Drop r600 driver changes
v3: Fix inserting NULL pointer
Signed-off-by: Jan Vesely <[email protected]>
Reviewed-by: Francisco Jerez <[email protected]>
Diffstat (limited to 'src/glsl/ast_to_hir.cpp')
0 files changed, 0 insertions, 0 deletions