intel/blorp: Move brw_blorp_get_urb_length helper
Moving to blorp_genX_exec.h to help make blorp_priv.h independent of brw types. Reviewed-by: Kenneth Graunke <kenneth@whitecape.org> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/27581>
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user