diff options
author | Kenneth Graunke <[email protected]> | 2014-04-17 19:25:16 -0700 |
---|---|---|
committer | Kenneth Graunke <[email protected]> | 2014-05-01 00:23:57 -0700 |
commit | 69fd0551661797d89fe339ea3310c9e735a651d5 (patch) | |
tree | 3a3b3cea6cb861ec749aaf43bef4e3f9b4eb4e50 /src/mesa/drivers/dri/i965/gen8_vec4_generator.cpp | |
parent | b10785f9a94978df3ddded6faf4da3b19849b33f (diff) |
i965: Drop mark_surface_used from gen8 generators.
Francisco made brw_mark_surface_used a freestanding function in
commit a32817f3c248125fb537c3a915566445e5600d45. We should use it.
Signed-off-by: Kenneth Graunke <[email protected]>
Reviewed-by: Eric Anholt <[email protected]>
Diffstat (limited to 'src/mesa/drivers/dri/i965/gen8_vec4_generator.cpp')
-rw-r--r-- | src/mesa/drivers/dri/i965/gen8_vec4_generator.cpp | 13 |
1 files changed, 2 insertions, 11 deletions
diff --git a/src/mesa/drivers/dri/i965/gen8_vec4_generator.cpp b/src/mesa/drivers/dri/i965/gen8_vec4_generator.cpp index b854db542d0..dd3035c7221 100644 --- a/src/mesa/drivers/dri/i965/gen8_vec4_generator.cpp +++ b/src/mesa/drivers/dri/i965/gen8_vec4_generator.cpp @@ -49,15 +49,6 @@ gen8_vec4_generator::~gen8_vec4_generator() } void -gen8_vec4_generator::mark_surface_used(unsigned surf_index) -{ - assert(surf_index < BRW_MAX_SURFACES); - - prog_data->base.binding_table.size_bytes = - MAX2(prog_data->base.binding_table.size_bytes, (surf_index + 1) * 4); -} - -void gen8_vec4_generator::generate_tex(vec4_instruction *ir, struct brw_reg dst) { int msg_type = 0; @@ -157,7 +148,7 @@ gen8_vec4_generator::generate_tex(vec4_instruction *ir, struct brw_reg dst) ir->header_present, BRW_SAMPLER_SIMD_MODE_SIMD4X2); - mark_surface_used(surf_index); + brw_mark_surface_used(&prog_data->base, surf_index); } void @@ -461,7 +452,7 @@ gen8_vec4_generator::generate_pull_constant_load(vec4_instruction *inst, false, /* no header */ false); /* EOT */ - mark_surface_used(surf_index); + brw_mark_surface_used(&prog_data->base, surf_index); } void |