case ILO_KERNEL_SURFACE_CONST_COUNT:
val = kernel->bt.const_count;
break;
+ case ILO_KERNEL_SURFACE_RES_BASE:
+ val = kernel->bt.res_base;
+ break;
+ case ILO_KERNEL_SURFACE_RES_COUNT:
+ val = kernel->bt.res_count;
+ break;
case ILO_KERNEL_VS_INPUT_INSTANCEID:
val = shader->info.has_instanceid;
val = kernel->bt.rt_count;
break;
+ case ILO_KERNEL_CS_LOCAL_SIZE:
+ val = shader->info.compute.req_local_mem;
+ break;
+ case ILO_KERNEL_CS_PRIVATE_SIZE:
+ val = shader->info.compute.req_private_mem;
+ break;
+ case ILO_KERNEL_CS_INPUT_SIZE:
+ val = shader->info.compute.req_input_mem;
+ break;
+ case ILO_KERNEL_CS_SIMD_SIZE:
+ val = 16;
+ break;
+ case ILO_KERNEL_CS_SURFACE_GLOBAL_BASE:
+ val = kernel->bt.global_base;
+ break;
+ case ILO_KERNEL_CS_SURFACE_GLOBAL_COUNT:
+ val = kernel->bt.global_count;
+ break;
+
default:
assert(!"unknown kernel parameter");
val = 0;
ILO_KERNEL_SURFACE_TEX_COUNT,
ILO_KERNEL_SURFACE_CONST_BASE,
ILO_KERNEL_SURFACE_CONST_COUNT,
+ ILO_KERNEL_SURFACE_RES_BASE,
+ ILO_KERNEL_SURFACE_RES_COUNT,
ILO_KERNEL_VS_INPUT_INSTANCEID,
ILO_KERNEL_VS_INPUT_VERTEXID,
ILO_KERNEL_FS_SURFACE_RT_BASE,
ILO_KERNEL_FS_SURFACE_RT_COUNT,
+ ILO_KERNEL_CS_LOCAL_SIZE,
+ ILO_KERNEL_CS_PRIVATE_SIZE,
+ ILO_KERNEL_CS_INPUT_SIZE,
+ ILO_KERNEL_CS_SIMD_SIZE,
+ ILO_KERNEL_CS_SURFACE_GLOBAL_BASE,
+ ILO_KERNEL_CS_SURFACE_GLOBAL_COUNT,
+
ILO_KERNEL_PARAM_COUNT,
};
int rt_base, rt_count;
int tex_base, tex_count;
int const_base, const_count;
+ int res_base, res_count;
int gen6_so_base, gen6_so_count;
+ int global_base, global_count;
+
int total_count;
} bt;