<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On Sun, Oct 22, 2017 at 1:01 PM, Jordan Justen <span dir="ltr"><<a href="mailto:jordan.l.justen@intel.com" target="_blank">jordan.l.justen@intel.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Signed-off-by: Jordan Justen <<a href="mailto:jordan.l.justen@intel.com">jordan.l.justen@intel.com</a>><br>
---<br>
src/intel/compiler/brw_<wbr>compiler.h | 18 ++++++++++++++++++<br>
1 file changed, 18 insertions(+)<br>
<br>
diff --git a/src/intel/compiler/brw_<wbr>compiler.h b/src/intel/compiler/brw_<wbr>compiler.h<br>
index 701b4a80bf1..9359b767e35 100644<br>
--- a/src/intel/compiler/brw_<wbr>compiler.h<br>
+++ b/src/intel/compiler/brw_<wbr>compiler.h<br>
@@ -403,6 +403,15 @@ struct brw_cs_prog_key {<br>
struct brw_sampler_prog_key_data tex;<br>
};<br>
<br>
+typedef union {<br>
+ struct brw_vs_prog_key vs;<br>
+ struct brw_tcs_prog_key tcs;<br>
+ struct brw_tes_prog_key tes;<br>
+ struct brw_gs_prog_key gs;<br>
+ struct brw_wm_prog_key wm;<br>
+ struct brw_cs_prog_key cs;<br>
+} brw_any_prog_key;<br>
+<br>
/*<br>
* Image metadata structure as laid out in the shader parameter<br>
* buffer. Entries have to be 16B-aligned for the vec4 back-end to be<br>
@@ -1066,6 +1075,15 @@ struct brw_clip_prog_data {<br>
uint32_t total_grf;<br>
};<br>
<br>
+typedef union {<br>
+ struct brw_vs_prog_data vs;<br>
+ struct brw_tcs_prog_data tcs;<br>
+ struct brw_tes_prog_data tes;<br>
+ struct brw_gs_prog_data gs;<br>
+ struct brw_wm_prog_data wm;<br>
+ struct brw_cs_prog_data cs;<br>
+} brw_any_prog_data;<br></blockquote><div><br></div><div>We don't do typedef'd unions or structs elsewhere in brw_compiler.h Maybe drop the typedef?<br></div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
+<br>
#define DEFINE_PROG_DATA_DOWNCAST(<wbr>stage) \<br>
static inline struct brw_##stage##_prog_data * \<br>
brw_##stage##_prog_data(struct brw_stage_prog_data *prog_data) \<br>
<span class="HOEnZb"><font color="#888888">--<br>
2.15.0.rc0<br>
<br>
______________________________<wbr>_________________<br>
mesa-dev mailing list<br>
<a href="mailto:mesa-dev@lists.freedesktop.org">mesa-dev@lists.freedesktop.org</a><br>
<a href="https://lists.freedesktop.org/mailman/listinfo/mesa-dev" rel="noreferrer" target="_blank">https://lists.freedesktop.org/<wbr>mailman/listinfo/mesa-dev</a><br>
</font></span></blockquote></div><br></div></div>