Technically, SM4.1 doesn't support cube map arrays, but our backend
renderers actually do. This allows the Piglit textureGather cube
map array tests to pass.
Tested with GLrenderer, DX11renderer and SWrenderer.
Reviewed-by: Neha Bhende <bhenden@vmware.com>
Reviewed-by: Charmaine Lee <charmainel@vmware.com>
const struct tgsi_full_instruction *inst)
{
const uint unit = inst->Src[2].Register.Index;
- unsigned target = inst->Texture.Texture;
struct tgsi_full_src_register src;
int offsets[3];
if (!is_valid_tex_instruction(emit, inst))
return TRUE;
- if (target == TGSI_TEXTURE_CUBE_ARRAY) {
- debug_printf("TGSI_TEXTURE_CUBE_ARRAY is not supported\n");
- return TRUE;
- }
-
- /* Only single channel is supported in SM4_1.
+ /* Only a single channel is supported in SM4_1 and we report
+ * PIPE_CAP_MAX_TEXTURE_GATHER_COMPONENTS = 1.
* Only the 0th component will be gathered.
*/
switch (emit->key.tex[unit].swizzle_r) {