softpipe: fix integer texture swizzling for 1 vs 1.0f
authorDave Airlie <airlied@redhat.com>
Thu, 21 Mar 2019 05:22:02 +0000 (15:22 +1000)
committerDave Airlie <airlied@redhat.com>
Thu, 21 Mar 2019 23:30:35 +0000 (09:30 +1000)
commit9dd92d08a5522e4385f00a0ed37a12a64255d4fb
tree4cb06a61e4df72652d5f828baf1c7248fd9f4401
parentaae5ba72aba79d855d8ab9ca399bad331e217353
softpipe: fix integer texture swizzling for 1 vs 1.0f

The swizzling was putting float one in not integer 1.

This fixes a lot of arb_texture_view-rendering-formats cases.

Reviewed-by: Brian Paul <brianp@vmware.com>
src/gallium/drivers/softpipe/sp_tex_sample.c