Skip to content

Instantly share code, notes, and snippets.

@karolherbst
Created February 15, 2024 16:19
Show Gist options
  • Save karolherbst/2c6c6779dbfb8c229f3b36f2a59e95e2 to your computer and use it in GitHub Desktop.
Save karolherbst/2c6c6779dbfb8c229f3b36f2a59e95e2 to your computer and use it in GitHub Desktop.
/*!
[config]
name: Test
clc_version_min: 10
dimensions: 1
global_size: 1 0 0
## sizeof ##
[test]
name: sizeof
kernel_name: test
arg_in: 0 buffer uchar[1] 0
arg_out: 0 buffer uchar[1] 0
!*/
#include "/home/kherbst/git/mesa/src/intel/shaders/generate.cl"
#include "/home/kherbst/git/mesa/src/intel/shaders/query_copy.cl"
void kernel test(int global* in, int global* out, int a, int b, int c, int d, int e, int f, int g, int h) {
genX(write_3DSTATE_VERTEX_BUFFERS)(NULL, a);
genX(write_3DPRIMITIVE_EXTENDED)(NULL, a == 0, b == 0, c == 0, a, b, c, d, e, f, g, h);
// genX(libanv_query_copy)(in, a, out, b, c, d, e, f, g, h);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment