mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-25 21:40:08 +01:00
i965: Move brw_mark_surface_used() to brw_shader.cpp
brw_program.c won't be part of the compiler library, but we need brw_mark_surface_used() in the compiler. Move to brw_shader.cpp. Reviewed-by: Topi Pohjolainen <topi.pohjolainen@intel.com> Signed-off-by: Kristian Høgsberg Kristensen <krh@bitplanet.net>
This commit is contained in:
parent
469d0e449b
commit
cc4683992b
2 changed files with 10 additions and 10 deletions
|
|
@ -530,16 +530,6 @@ brw_destroy_shader_time(struct brw_context *brw)
|
|||
brw->shader_time.bo = NULL;
|
||||
}
|
||||
|
||||
void
|
||||
brw_mark_surface_used(struct brw_stage_prog_data *prog_data,
|
||||
unsigned surf_index)
|
||||
{
|
||||
assert(surf_index < BRW_MAX_SURFACES);
|
||||
|
||||
prog_data->binding_table.size_bytes =
|
||||
MAX2(prog_data->binding_table.size_bytes, (surf_index + 1) * 4);
|
||||
}
|
||||
|
||||
void
|
||||
brw_stage_prog_data_free(const void *p)
|
||||
{
|
||||
|
|
|
|||
|
|
@ -164,6 +164,16 @@ brw_new_shader(struct gl_context *ctx, GLuint name, GLuint type)
|
|||
return &shader->base;
|
||||
}
|
||||
|
||||
void
|
||||
brw_mark_surface_used(struct brw_stage_prog_data *prog_data,
|
||||
unsigned surf_index)
|
||||
{
|
||||
assert(surf_index < BRW_MAX_SURFACES);
|
||||
|
||||
prog_data->binding_table.size_bytes =
|
||||
MAX2(prog_data->binding_table.size_bytes, (surf_index + 1) * 4);
|
||||
}
|
||||
|
||||
enum brw_reg_type
|
||||
brw_type_for_base_type(const struct glsl_type *type)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue