diff --git a/src/intel/blorp/blorp_genX_exec.h b/src/intel/blorp/blorp_genX_exec.h index b5b03b0b378..f4816e292c9 100644 --- a/src/intel/blorp/blorp_genX_exec.h +++ b/src/intel/blorp/blorp_genX_exec.h @@ -134,6 +134,19 @@ static void blorp_emit_post_draw(struct blorp_batch *batch, const struct blorp_params *params); +static inline unsigned +brw_blorp_get_urb_length(const struct brw_wm_prog_data *prog_data) +{ + if (prog_data == NULL) + return 1; + + /* From the BSpec: 3D Pipeline - Strips and Fans - 3DSTATE_SBE + * + * read_length = ceiling((max_source_attr+1)/2) + */ + return MAX2((prog_data->num_varying_inputs + 1) / 2, 1); +} + /***** BEGIN blorp_exec implementation ******/ static uint64_t diff --git a/src/intel/blorp/blorp_priv.h b/src/intel/blorp/blorp_priv.h index 2be9b17e311..9e31882090c 100644 --- a/src/intel/blorp/blorp_priv.h +++ b/src/intel/blorp/blorp_priv.h @@ -191,19 +191,6 @@ struct blorp_vs_inputs { uint32_t pad[2]; }; -static inline unsigned -brw_blorp_get_urb_length(const struct brw_wm_prog_data *prog_data) -{ - if (prog_data == NULL) - return 1; - - /* From the BSpec: 3D Pipeline - Strips and Fans - 3DSTATE_SBE - * - * read_length = ceiling((max_source_attr+1)/2) - */ - return MAX2((prog_data->num_varying_inputs + 1) / 2, 1); -} - enum blorp_shader_type { BLORP_SHADER_TYPE_COPY, BLORP_SHADER_TYPE_BLIT,