[PATCH 0/2] etnaviv: ASTC texture support

Wladimir J. van der Laan laanwj at gmail.com
Wed Nov 1 17:19:00 UTC 2017


Add ASTC texture support for hardware that supports this
(currently only GC3000 on i.MX6qp is known to have this).

Piglit output:

    $ bin/khr_compressed_astc-miptree_gles2
    PIGLIT: {"subtest": {"LDR Profile" : "pass"}}
    PIGLIT: {"subtest": {"HDR Profile" : "pass"}}
    PIGLIT: {"subtest": {"sRGB decode" : "pass"}}
    Probe at (144,44)
    Expected: 0.972549 0.972549 0.972549 1.000000
    Observed: 0.984314 0.984314 0.984314 1.000000
    piglit: error: Miplevel 0
    piglit: error: Mode ldrs Block 4x4.
    PIGLIT: {"subtest": {"sRGB decode full precision" : "fail"}}
    PIGLIT: {"subtest": {"sRGB skip decode" : "pass"}}

This means all block sizes are working, and basic RGB/sRGB.

Not sure why "sRGB decode full precision" is not passing,
probably the hw just doesn't do that.

Wladimir J. van der Laan (2):
  etnaviv: Update from rnndb
  etnaviv: ASTC texture support

 src/gallium/drivers/etnaviv/etnaviv_clear_blit.c |   2 +-
 src/gallium/drivers/etnaviv/etnaviv_emit.c       |   8 +
 src/gallium/drivers/etnaviv/etnaviv_format.c     |  39 ++-
 src/gallium/drivers/etnaviv/etnaviv_format.h     |   1 +
 src/gallium/drivers/etnaviv/etnaviv_internal.h   |   2 +
 src/gallium/drivers/etnaviv/etnaviv_screen.c     |   6 +
 src/gallium/drivers/etnaviv/etnaviv_state.c      |   2 +-
 src/gallium/drivers/etnaviv/etnaviv_texture.c    |  11 +-
 src/gallium/drivers/etnaviv/etnaviv_texture.h    |   1 +
 src/gallium/drivers/etnaviv/etnaviv_transfer.c   |   2 +
 src/gallium/drivers/etnaviv/etnaviv_translate.h  |  15 +-
 src/gallium/drivers/etnaviv/hw/cmdstream.xml.h   |  20 +-
 src/gallium/drivers/etnaviv/hw/common.xml.h      |  11 +-
 src/gallium/drivers/etnaviv/hw/common_3d.xml.h   | 171 ++++++++++
 src/gallium/drivers/etnaviv/hw/isa.xml.h         |  15 +-
 src/gallium/drivers/etnaviv/hw/state.xml.h       | 210 +++++-------
 src/gallium/drivers/etnaviv/hw/state_3d.xml.h    | 402 ++++++++++++++---------
 src/gallium/drivers/etnaviv/hw/state_blt.xml.h   | 282 ++++++++++++++++
 src/gallium/drivers/etnaviv/hw/texdesc_3d.xml.h  | 194 +++++++++++
 19 files changed, 1072 insertions(+), 322 deletions(-)
 create mode 100644 src/gallium/drivers/etnaviv/hw/common_3d.xml.h
 create mode 100644 src/gallium/drivers/etnaviv/hw/state_blt.xml.h
 create mode 100644 src/gallium/drivers/etnaviv/hw/texdesc_3d.xml.h

-- 
2.7.4



More information about the etnaviv mailing list