diff options
author | Eric Anholt <[email protected]> | 2017-07-12 15:56:00 -0700 |
---|---|---|
committer | Eric Anholt <[email protected]> | 2017-07-25 14:44:52 -0700 |
commit | b3c78a51f33a26b57f4bec64bab73ea720c1e619 (patch) | |
tree | 32b74b7c012fdc6e5886da80409e5563a4ce9317 /src/broadcom | |
parent | 299c9a2db1391f222e784aa54b4b5e321afdffc6 (diff) |
broadcom/vc4: Switch the Viewport Center fields to a fixed-point representation.
This gets us automatic CL decoding to a floating-point value, and drops a
magic number from the emit code. 250x250 shader runner tests now say they
have a center of 125.0 instead of 2000.
Diffstat (limited to 'src/broadcom')
-rw-r--r-- | src/broadcom/cle/v3d_packet_v21.xml | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/broadcom/cle/v3d_packet_v21.xml b/src/broadcom/cle/v3d_packet_v21.xml index 350cf294b51..b28f2b5eb6c 100644 --- a/src/broadcom/cle/v3d_packet_v21.xml +++ b/src/broadcom/cle/v3d_packet_v21.xml @@ -212,8 +212,8 @@ </packet> <packet name="Viewport Offset" code="103"> - <field name="Viewport Centre Y-coordinate" size="16" start="16" type="int"/> - <field name="Viewport Centre X-coordinate" size="16" start="0" type="int"/> + <field name="Viewport Centre Y-coordinate" size="16" start="16" type="s12.4"/> + <field name="Viewport Centre X-coordinate" size="16" start="0" type="s12.4"/> </packet> <packet name="Z min and max clipping planes" code="104"> |