Mesa (master): panfrost: Flip texture/sampler fields

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Wed Jul 31 17:58:47 UTC 2019


Module: Mesa
Branch: master
Commit: 194b49ee28131cea9ab5af947d0fb12873125bfc
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=194b49ee28131cea9ab5af947d0fb12873125bfc

Author: Alyssa Rosenzweig <alyssa.rosenzweig at collabora.com>
Date:   Wed Jul 31 07:20:29 2019 -0700

panfrost: Flip texture/sampler fields

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 at collabora.com>

---

 src/panfrost/include/panfrost-job.h | 2 +-
 src/panfrost/midgard/midgard.h      | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/panfrost/include/panfrost-job.h b/src/panfrost/include/panfrost-job.h
index 1f9fbafbe08..7766a00ca2c 100644
--- a/src/panfrost/include/panfrost-job.h
+++ b/src/panfrost/include/panfrost-job.h
@@ -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;
 
diff --git a/src/panfrost/midgard/midgard.h b/src/panfrost/midgard/midgard.h
index 04257a737bd..aa8b1793c99 100644
--- a/src/panfrost/midgard/midgard.h
+++ b/src/panfrost/midgard/midgard.h
@@ -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;
 




More information about the mesa-commit mailing list