Mesa (master): intel/compiler: Expose brw_texture_offset to C
GitLab Mirror
gitlab-mirror at kemper.freedesktop.org
Tue Jun 23 17:53:19 UTC 2020
Module: Mesa
Branch: master
Commit: ecda98fbb2d27a9b6d2d3e1d30368b2b9b1cd027
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=ecda98fbb2d27a9b6d2d3e1d30368b2b9b1cd027
Author: Jason Ekstrand <jason at jlekstrand.net>
Date: Tue Aug 13 11:08:40 2019 -0500
intel/compiler: Expose brw_texture_offset to C
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 at whitecape.org>
Reviewed-by: Kristian H. Kristensen <hoegsberg at google.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5596>
---
src/intel/compiler/brw_shader.h | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/src/intel/compiler/brw_shader.h b/src/intel/compiler/brw_shader.h
index 984026f771d..03b09cce8e1 100644
--- a/src/intel/compiler/brw_shader.h
+++ b/src/intel/compiler/brw_shader.h
@@ -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.
*/
More information about the mesa-commit
mailing list