radv: fix texturesamples to handle single sample case
authorDave Airlie <airlied@redhat.com>
Thu, 10 Nov 2016 00:32:08 +0000 (10:32 +1000)
committerDave Airlie <airlied@redhat.com>
Thu, 10 Nov 2016 23:35:43 +0000 (09:35 +1000)
commit2de85eb97ab2ef45ec23f694a566cd0ec8192885
tree8eb85f28db96840b973c0d09ad538548ed87fc79
parenta6c3d0f92b754e11e74cea9d6bd5ac329c73a8ba
radv: fix texturesamples to handle single sample case

We can only read the valid samples if this is an MSAA
texture, which means the type field must be 0x14 or 0x15.

This fixes:
dEQP-VK.glsl.texture_functions.query.texturesamples.*

Cc: "13.0" <mesa-stable@lists.freedesktop.org>
Reviewed-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
Signed-off-by: Dave Airlie <airlied@redhat.com>
src/amd/common/ac_nir_to_llvm.c