projects
/
platform
/
upstream
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ca23a4a
)
microsoft/clc: Add a unit test for unused image kernel args
author
Jesse Natalie
<jenatali@microsoft.com>
Mon, 27 Jun 2022 04:09:07 +0000
(21:09 -0700)
committer
Marge Bot
<emma+marge@anholt.net>
Mon, 27 Jun 2022 16:54:27 +0000
(16:54 +0000)
Reviewed-by: Bill Kristiansen <billkris@microsoft.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/17246>
src/microsoft/clc/clc_compiler_test.cpp
patch
|
blob
|
history
diff --git
a/src/microsoft/clc/clc_compiler_test.cpp
b/src/microsoft/clc/clc_compiler_test.cpp
index
7172894
..
19ec352
100644
(file)
--- a/
src/microsoft/clc/clc_compiler_test.cpp
+++ b/
src/microsoft/clc/clc_compiler_test.cpp
@@
-1558,6
+1558,16
@@
TEST_F(ComputeTest, image_two_reads)
validate(shader);
}
+TEST_F(ComputeTest, image_unused)
+{
+ const char* kernel_source =
+ "__kernel void main_test(read_only image2d_t input, write_only image2d_t output)\n\
+ {\n\
+ }\n";
+ Shader shader = compile(std::vector<const char*>({ kernel_source }));
+ validate(shader);
+}
+
TEST_F(ComputeTest, image_read_write)
{
const char *kernel_source =