panfrost: Flip texture/sampler fields
authorAlyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
Wed, 31 Jul 2019 14:20:29 +0000 (07:20 -0700)
committerAlyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
Wed, 31 Jul 2019 17:56:11 +0000 (10:56 -0700)
We had them backwards in both the command stream and the Midgard stack.
In OpenGL ES 2.0, they're always the same, but in Vulkan/later-GL/CL
they diverge so we can fix this.

Signed-off-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
src/panfrost/include/panfrost-job.h
src/panfrost/midgard/midgard.h

index 1f9fbafbe084321936c3f57d59d46c026edd068c..7766a00ca2cffc4e4b41dd2df4f8ab9f399ee36e 100644 (file)
@@ -531,8 +531,8 @@ struct bifrost_blend_rt {
 
 struct mali_shader_meta {
         mali_ptr shader;
-        u16 texture_count;
         u16 sampler_count;
+        u16 texture_count;
         u16 attribute_count;
         u16 varying_count;
 
index 04257a737bd3a98ab95b9f8e23183868fd162392..aa8b1793c99e1045dcb2c5ba3e215223f40e8f7d 100644 (file)
@@ -652,8 +652,8 @@ __attribute__((__packed__))
         unsigned bias : 8;
         signed bias_int  : 8;
 
-        unsigned texture_handle : 16;
         unsigned sampler_handle : 16;
+        unsigned texture_handle : 16;
 }
 midgard_texture_word;