brw: Embed at_end() inside brw_builder(brw_shader *) constructor
All remaining uses of that constructor would also use at_end(), and vice-versa. So just implement that behavior in the constructor itself. Reviewed-by: Kenneth Graunke <kenneth@whitecape.org> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/33815>
This commit is contained in:
@@ -65,15 +65,9 @@ struct FSCombineConstantsTest : public ::testing::Test {
|
||||
}
|
||||
};
|
||||
|
||||
static brw_builder
|
||||
make_builder(brw_shader *s)
|
||||
{
|
||||
return brw_builder(s).at_end();
|
||||
}
|
||||
|
||||
TEST_F(FSCombineConstantsTest, Simple)
|
||||
{
|
||||
brw_builder bld = make_builder(shader);
|
||||
brw_builder bld = brw_builder(shader);
|
||||
|
||||
brw_reg r = brw_vec8_grf(1, 0);
|
||||
brw_reg imm_a = brw_imm_ud(1);
|
||||
@@ -98,7 +92,7 @@ TEST_F(FSCombineConstantsTest, Simple)
|
||||
|
||||
TEST_F(FSCombineConstantsTest, DoContainingDo)
|
||||
{
|
||||
brw_builder bld = make_builder(shader);
|
||||
brw_builder bld = brw_builder(shader);
|
||||
|
||||
brw_reg r1 = brw_vec8_grf(1, 0);
|
||||
brw_reg r2 = brw_vec8_grf(2, 0);
|
||||
|
||||
Reference in New Issue
Block a user