mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-08 15:38:09 +02:00
i965/fs: Clean up the setup of gen4 simd16 message destinations.
I think this makes it much more obvious what's going on here.
NOTE: This is a candidate for the 9.1 branch.
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
(cherry picked from commit 8edc7cbe64)
This commit is contained in:
parent
724269bb32
commit
ee561e0927
1 changed files with 4 additions and 5 deletions
|
|
@ -887,11 +887,10 @@ fs_visitor::emit_texture_gen4(ir_texture *ir, fs_reg dst, fs_reg coordinate,
|
|||
* this weirdness around to the expected layout.
|
||||
*/
|
||||
orig_dst = dst;
|
||||
const glsl_type *vec_type =
|
||||
glsl_type::get_instance(ir->type->base_type, 4, 1);
|
||||
dst = fs_reg(this, glsl_type::get_array_instance(vec_type, 2));
|
||||
dst.type = intel->is_g4x ? brw_type_for_base_type(ir->type)
|
||||
: BRW_REGISTER_TYPE_F;
|
||||
dst = fs_reg(GRF, virtual_grf_alloc(8),
|
||||
(intel->is_g4x ?
|
||||
brw_type_for_base_type(ir->type) :
|
||||
BRW_REGISTER_TYPE_F));
|
||||
}
|
||||
|
||||
fs_inst *inst = NULL;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue