Giter Site home page Giter Site logo

GK104+ SUSTP image format enums about nouveau HOT 4 OPEN

imirkin avatar imirkin commented on July 17, 2024
GK104+ SUSTP image format enums

from nouveau.

Comments (4)

markkilgard avatar markkilgard commented on July 17, 2024

You are missing:

  1. hex 0x47 (71 decimal) is your BGRA8_UNORM
  2. hex 0x3B (59 decimal) is your A8_UNORM

I believe that's all you are missing. I hope this helps.

from nouveau.

imirkin avatar imirkin commented on July 17, 2024

Hm, surprising that you don't also have values for things like RGB565/RGBA4/RGB5A1 and their BGR friends, as all of those have RT formats (https://github.com/envytools/envytools/blob/master/rnndb/g80_defs.xml#L198). On SM20, you could literally plug a RT format enum into the image binding.

[By the way, recent RE work on SM50 indicates that SM50 just takes a TIC reference and uses its format, so these are only for SM30 and SM35. But you probably already knew this.]

from nouveau.

markkilgard avatar markkilgard commented on July 17, 2024

surprising that you don't also have values for things like RGB565/RGBA4/RGB5A1 and their BGR

There are values for some of these formats such as RGB565, but those not listed are "unsupported" formats for the SUSTP instruction.

Writes to any surface formats marked "unsupported" are dropped silently.

Examples of unsupported formats are formats with forced one or zero components, RGB5 or R5G6B5 formats, 32-bit unorm formats, alpha formats, red-alpha formats, and sRGB formats.

from nouveau.

imirkin avatar imirkin commented on July 17, 2024

After some experimentation, it appears that BGRA8_UNORM is actually 0x11 (only tested on GK208/SM35 thus far). Which coincidentally happens to be 0x47 >> 2. Perhaps the bottom 2 bits in your tables mean something else? Or did the other values match up properly?

from nouveau.

Related Issues (16)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.