summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDave Airlie <airlied@redhat.com>2020-10-07 16:03:59 +1000
committerDave Airlie <airlied@redhat.com>2020-11-17 05:15:09 +1000
commita8bad2b71a25246ac756c93014d631ee4f8277a3 (patch)
treeb5913d1a8165148e90640755f7a867930f462f1c
parentbd804c074fd90966a869d00961fce1a5a0d7defc (diff)
clover: add 3.0 program properties
the real IL code will rewrite this Reviewed-by: Karol Herbst <kherbst@redhat.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/7642>
-rw-r--r--src/gallium/frontends/clover/api/program.cpp13
1 files changed, 13 insertions, 0 deletions
diff --git a/src/gallium/frontends/clover/api/program.cpp b/src/gallium/frontends/clover/api/program.cpp
index 22c187053b8..ebe5f233c3c 100644
--- a/src/gallium/frontends/clover/api/program.cpp
+++ b/src/gallium/frontends/clover/api/program.cpp
@@ -461,6 +461,15 @@ clGetProgramInfo(cl_program d_prog, cl_program_info param,
}, std::string(), prog.symbols());
break;
+ case CL_PROGRAM_SCOPE_GLOBAL_CTORS_PRESENT:
+ case CL_PROGRAM_SCOPE_GLOBAL_DTORS_PRESENT:
+ buf.as_scalar<cl_bool>() = CL_FALSE;
+ break;
+
+ case CL_PROGRAM_IL:
+ if (r_size)
+ *r_size = 0;
+ break;
default:
throw error(CL_INVALID_VALUE);
}
@@ -499,6 +508,10 @@ clGetProgramBuildInfo(cl_program d_prog, cl_device_id d_dev,
buf.as_scalar<cl_program_binary_type>() = prog.build(dev).binary_type();
break;
+ case CL_PROGRAM_BUILD_GLOBAL_VARIABLE_TOTAL_SIZE:
+ buf.as_scalar<size_t>() = 0;
+ break;
+
default:
throw error(CL_INVALID_VALUE);
}