freedreno/ir3: use pipe_image_view's cpp
authorRob Clark <robdclark@gmail.com>
Thu, 7 Jun 2018 19:44:28 +0000 (15:44 -0400)
committerRob Clark <robdclark@gmail.com>
Mon, 11 Jun 2018 13:06:03 +0000 (09:06 -0400)
commit55d1a77c29e2bf122e56d462aac255739b6f85e2
tree694ad18aab99d2b75f18658b4188abf1c22433e3
parent9bb90a3255c7494796d57eef3a73bc0b77a005d5
freedreno/ir3: use pipe_image_view's cpp

At least for PIPE_BUFFER, we could get the resource used as (for
example) R32F imageBuffer.  So using cpp=1 from the rsc is wrong.

Signed-off-by: Rob Clark <robdclark@gmail.com>
src/gallium/drivers/freedreno/ir3/ir3_shader.c