panfrost: Derive texture/sampler_count from shader
[mesa.git] / src / gallium / drivers / panfrost / pan_context.h
index 6e655b3d472c824282fc09b383c7fa0d21617eeb..8fb6c3a3ad14b4b0cd18f7083d8a06c482142a9a 100644 (file)
@@ -188,6 +188,7 @@ struct panfrost_shader_state {
         unsigned uniform_count;
         unsigned work_reg_count;
         unsigned attribute_count;
+        unsigned texture_count;
         bool can_discard;
         bool writes_point_size;
         bool writes_depth;
@@ -221,7 +222,9 @@ struct panfrost_shader_state {
         /* Should we enable helper invocations */
         bool helper_invocations;
 
-        unsigned first_tag;
+        /* Pointer to GPU-executable memory formatted for the hardware. bo->gpu
+         * on Bifrost, bo->gpu | initial_tag on Midgard */
+        mali_ptr shader;
         struct panfrost_bo *bo;
 
         BITSET_WORD outputs_read;