mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-24 13:10:10 +01:00
etnaviv: isa: Switch to enum isa_thread
Signed-off-by: Christian Gmeiner <cgmeiner@igalia.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/28929>
This commit is contained in:
parent
87e5ad3930
commit
a0dad2e705
2 changed files with 6 additions and 7 deletions
|
|
@ -79,11 +79,10 @@ struct etna_inst {
|
|||
enum isa_opc opcode;
|
||||
enum isa_type type;
|
||||
enum isa_rounding rounding;
|
||||
enum isa_cond cond : 5;
|
||||
unsigned sat : 1; /* saturate result between 0..1 */
|
||||
unsigned sel_bit0 : 1; /* select low half mediump */
|
||||
unsigned sel_bit1 : 1; /* select high half mediump */
|
||||
unsigned dst_full : 1; /* write to highp register */
|
||||
enum isa_cond cond : 5;
|
||||
unsigned sat : 1; /* saturate result between 0..1 */
|
||||
enum isa_thread thread : 2; /* select low/high half mediump */
|
||||
unsigned dst_full : 1; /* write to highp register */
|
||||
struct etna_inst_dst dst; /* destination operand */
|
||||
struct etna_inst_tex tex; /* texture operand */
|
||||
struct etna_inst_src src[ETNA_NUM_SRC]; /* source operand */
|
||||
|
|
|
|||
|
|
@ -148,8 +148,8 @@ SPDX-License-Identifier: MIT
|
|||
<encode type="struct etna_inst *" case-prefix="ISA_OPC_">
|
||||
<map name="TYPE_BIT01">src->type & 0x3</map>
|
||||
<map name="TYPE_BIT2">(src->type & 0x4) > 2</map>
|
||||
<map name="LOW_HALF">src->sel_bit0</map>
|
||||
<map name="HIGH_HALF">src->sel_bit1</map>
|
||||
<map name="LOW_HALF">(src->thread & 0x1)</map>
|
||||
<map name="HIGH_HALF">(src->thread & 0x2) > 1</map>
|
||||
<map name="COND">src->cond</map>
|
||||
<map name="RMODE">src->rounding</map>
|
||||
<map name="SAT">src->sat</map>
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue