intel/compiler: Expose brw_texture_offset to C
authorJason Ekstrand <jason@jlekstrand.net>
Tue, 13 Aug 2019 16:08:40 +0000 (11:08 -0500)
committerMarge Bot <eric+marge@anholt.net>
Tue, 23 Jun 2020 17:43:53 +0000 (17:43 +0000)
Some day we probably want to move it out of brw_shader if we're going to
share it with IBC but that can be another day.

Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
Reviewed-by: Kristian H. Kristensen <hoegsberg@google.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5596>

src/intel/compiler/brw_shader.h

index 984026f771decaefd0c6a747c0ebd5d258bdaa3c..03b09cce8e13f8bb5e79bde99f1f71a410f8a903 100644 (file)
@@ -89,9 +89,6 @@ public:
    virtual void invalidate_analysis(brw::analysis_dependency_class c);
 };
 
-bool brw_texture_offset(const nir_tex_instr *tex, unsigned src,
-                        uint32_t *offset_bits);
-
 #else
 struct backend_shader;
 #endif /* __cplusplus */
@@ -128,6 +125,9 @@ brw_get_scratch_size(int size)
    return MAX2(1024, util_next_power_of_two(size));
 }
 
+bool brw_texture_offset(const nir_tex_instr *tex, unsigned src,
+                        uint32_t *offset_bits);
+
 /**
  * Scratch data used when compiling a GLSL geometry shader.
  */