~mmach/netext73/mesa-ryzen

« back to all changes in this revision

Viewing changes to src/gallium/drivers/v3d/v3d_context.h

  • Committer: mmach
  • Date: 2023-11-02 21:31:35 UTC
  • Revision ID: netbit73@gmail.com-20231102213135-18d4tzh7tj0uz752
2023-11-02 22:11:57

Show diffs side-by-side

added added

removed removed

Lines of Context:
600
600
 
601
601
        uint32_t tf_prims_generated;
602
602
        uint32_t prims_generated;
 
603
        bool prim_restart;
603
604
 
604
605
        uint32_t n_primitives_generated_queries_in_flight;
605
606
 
759
760
                                    enum pipe_format f);
760
761
const uint8_t *v3d_get_format_swizzle(const struct v3d_device_info *devinfo,
761
762
                                      enum pipe_format f);
762
 
void v3d_get_internal_type_bpp_for_output_format(const struct v3d_device_info *devinfo,
763
 
                                                 uint32_t format,
764
 
                                                 uint32_t *type,
765
 
                                                 uint32_t *bpp);
766
 
bool v3d_tfu_supports_tex_format(const struct v3d_device_info *devinfo,
767
 
                                 uint32_t tex_format,
768
 
                                 bool for_mipmap);
769
763
bool v3d_format_supports_tlb_msaa_resolve(const struct v3d_device_info *devinfo,
770
764
                                          enum pipe_format f);
771
765
 
800
794
void v3d_flag_dirty_sampler_state(struct v3d_context *v3d,
801
795
                                  enum pipe_shader_type shader);
802
796
 
803
 
void v3d_create_texture_shader_state_bo(struct v3d_context *v3d,
804
 
                                        struct v3d_sampler_view *so);
805
 
 
806
797
void v3d_get_tile_buffer_size(bool is_msaa,
807
798
                              bool double_buffer,
808
799
                              uint32_t nr_cbufs,
825
816
                          uint32_t qpu_size);
826
817
#endif /* ENABLE_SHADER_CACHE */
827
818
 
 
819
/* Helper to call hw ver specific functions */
 
820
#define v3d_X(devinfo, thing) ({                                \
 
821
        __typeof(&v3d42_##thing) v3d_X_thing;                   \
 
822
        if ((devinfo)->ver >= 42)                               \
 
823
                v3d_X_thing = &v3d42_##thing;                   \
 
824
        else if ((devinfo)->ver >= 33)                          \
 
825
                v3d_X_thing = &v3d33_##thing;                   \
 
826
        else                                                    \
 
827
                unreachable("Unsupported hardware generation"); \
 
828
        v3d_X_thing;                                            \
 
829
})
 
830
 
828
831
#ifdef v3dX
829
832
#  include "v3dx_context.h"
830
833
#else
832
835
#  include "v3dx_context.h"
833
836
#  undef v3dX
834
837
 
835
 
#  define v3dX(x) v3d41_##x
 
838
#  define v3dX(x) v3d42_##x
836
839
#  include "v3dx_context.h"
837
840
#  undef v3dX
838
841
#endif