freedreno/isa: Fixes for validation

Signed-off-by: Rob Clark <robdclark@chromium.org>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/13353>
This commit is contained in:
Rob Clark
2021-10-12 10:23:18 -07:00
committed by Marge Bot
parent 9516d8ce98
commit 8b0550f09f
3 changed files with 5 additions and 5 deletions
+1 -1
View File
@@ -338,7 +338,7 @@ struct ir3_instruction {
* handled.
*/
int dst_offset;
int iim_val : 3; /* for ldgb/stgb, # of components */
int iim_val; /* for ldgb/stgb, # of components */
unsigned d : 3; /* for ldc, component offset */
bool typed : 1;
unsigned base : 3;
+3 -3
View File
@@ -136,12 +136,12 @@ SOFTWARE.
<expr>({OFF_HI} &lt;&lt; 8) | {OFF_LO}</expr>
</derived>
<field low="9" high="13" name="OFF_HI" type="uint"/>
<field low="9" high="13" name="OFF_HI" type="int"/>
<field low="32" high="39" name="OFF_LO" type="uint"/>
<pattern pos="52" >0</pattern> <!-- Imm offset stg form -->
<encode>
<map name="OFF_LO">src->srcs[1]->iim_val</map>
<map name="OFF_LO">src->srcs[1]->iim_val &amp; 0xff</map>
<map name="OFF_HI">src->srcs[1]->iim_val >> 8</map>
<map name="SRC3">src->srcs[2]</map>
<map name="SIZE">src->srcs[3]->uim_val</map>
@@ -260,7 +260,7 @@ SOFTWARE.
</derived>
<field low="1" high="8" name="SRC" type="#reg-gpr"/>
<field low="9" high="13" name="OFF_HI" type="uint"/>
<field low="9" high="13" name="OFF_HI" type="int"/>
<pattern low="14" high="22">xxxxxxxxx</pattern>
<pattern pos="23" >1</pattern>
<field low="24" high="31" name="SIZE" type="uint"/>
+1 -1
View File
@@ -149,7 +149,7 @@ SOFTWARE.
<pattern low="11" high="13">100</pattern>
<field name="ABSNEG" low="14" high="15" type="#absneg"/>
<encode>
<map name="IMMED">src->uim_val</map>
<map name="IMMED">src->iim_val</map>
</encode>
</bitset>