<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On Tue, Feb 28, 2017 at 10:19 PM, Matt Turner <span dir="ltr"><<a href="mailto:mattst88@gmail.com" target="_blank">mattst88@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="HOEnZb"><div class="h5">On Tue, Feb 28, 2017 at 9:03 PM, Jason Ekstrand <<a href="mailto:jason@jlekstrand.net">jason@jlekstrand.net</a>> wrote:<br>
> ---<br>
> src/mesa/drivers/dri/i965/brw_<wbr>compiler.c | 1 +<br>
> src/mesa/drivers/dri/i965/brw_<wbr>context.h | 16 ----------------<br>
> src/mesa/drivers/dri/i965/brw_<wbr>shader.h | 18 ++++++++++++++++++<br>
> 3 files changed, 19 insertions(+), 16 deletions(-)<br>
><br>
> diff --git a/src/mesa/drivers/dri/i965/<wbr>brw_compiler.c b/src/mesa/drivers/dri/i965/<wbr>brw_compiler.c<br>
> index f3dafec..18ca444 100644<br>
> --- a/src/mesa/drivers/dri/i965/<wbr>brw_compiler.c<br>
> +++ b/src/mesa/drivers/dri/i965/<wbr>brw_compiler.c<br>
> @@ -23,6 +23,7 @@<br>
><br>
> #include "brw_compiler.h"<br>
> #include "brw_context.h"<br>
> +#include "brw_shader.h"<br>
> #include "compiler/nir/nir.h"<br>
> #include "main/errors.h"<br>
> #include "util/debug.h"<br>
> diff --git a/src/mesa/drivers/dri/i965/<wbr>brw_context.h b/src/mesa/drivers/dri/i965/<wbr>brw_context.h<br>
> index c9a931c..eda5c32 100644<br>
> --- a/src/mesa/drivers/dri/i965/<wbr>brw_context.h<br>
> +++ b/src/mesa/drivers/dri/i965/<wbr>brw_context.h<br>
> @@ -1330,12 +1330,6 @@ key_debug(struct brw_context *brw, const char *name, int a, int b)<br>
><br>
> void brwInitFragProgFuncs( struct dd_function_table *functions );<br>
><br>
> -/* Per-thread scratch space is a power-of-two multiple of 1KB. */<br>
> -static inline int<br>
> -brw_get_scratch_size(int size)<br>
> -{<br>
> - return MAX2(1024, util_next_power_of_two(size));<br>
> -}<br>
> void brw_get_scratch_bo(struct brw_context *brw,<br>
> drm_intel_bo **scratch_bo, int size);<br>
> void brw_alloc_stage_scratch(struct brw_context *brw,<br>
> @@ -1358,13 +1352,6 @@ void brw_upload_urb_fence(struct brw_context *brw);<br>
> */<br>
> void brw_upload_cs_urb_state(struct brw_context *brw);<br>
><br>
> -/* brw_fs_reg_allocate.cpp<br>
> - */<br>
> -void brw_fs_alloc_reg_sets(struct brw_compiler *compiler);<br>
> -<br>
> -/* brw_vec4_reg_allocate.cpp */<br>
> -void brw_vec4_alloc_reg_set(struct brw_compiler *compiler);<br>
> -<br>
> /* brw_disasm.c */<br>
> int brw_disassemble_inst(FILE *file, const struct gen_device_info *devinfo,<br>
> struct brw_inst *inst, bool is_compacted);<br>
> @@ -1628,9 +1615,6 @@ brw_program_reloc(struct brw_context *brw, uint32_t state_offset,<br>
><br>
> bool brw_do_cubemap_normalize(<wbr>struct exec_list *instructions);<br>
><br>
> -extern const char * const conditional_modifier[16];<br>
> -extern const char *const pred_ctrl_align16[16];<br>
> -<br>
> static inline bool<br>
> brw_depth_writes_enabled(const struct brw_context *brw)<br>
> {<br>
> diff --git a/src/mesa/drivers/dri/i965/<wbr>brw_shader.h b/src/mesa/drivers/dri/i965/<wbr>brw_shader.h<br>
> index 60f498f..8cda6b2 100644<br>
> --- a/src/mesa/drivers/dri/i965/<wbr>brw_shader.h<br>
> +++ b/src/mesa/drivers/dri/i965/<wbr>brw_shader.h<br>
> @@ -258,6 +258,24 @@ bool opt_predicated_break(struct backend_shader *s);<br>
> extern "C" {<br>
> #endif<br>
><br>
> +/* brw_fs_reg_allocate.cpp<br>
> + */<br>
<br>
</div></div>Let's make this a single-line comment while we're moving it.<span class=""><br></span></blockquote><div><br></div><div>done<br></div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="">
> +void brw_fs_alloc_reg_sets(struct brw_compiler *compiler);<br>
> +<br>
> +/* brw_vec4_reg_allocate.cpp */<br>
> +void brw_vec4_alloc_reg_set(struct brw_compiler *compiler);<br>
> +<br>
> +/* brw_disasm.c */<br>
> +extern const char * const conditional_modifier[16];<br>
<br>
</span>And let's remove the space after the * while we're here as well.<br>
</blockquote></div><br></div><div class="gmail_extra">done<br></div></div>