iris: Avoid croaking when trying to create FBO surfaces with bad formats
authorKenneth Graunke <kenneth@whitecape.org>
Thu, 26 Jul 2018 08:06:27 +0000 (01:06 -0700)
committerKenneth Graunke <kenneth@whitecape.org>
Thu, 21 Feb 2019 18:26:08 +0000 (10:26 -0800)
commitc9f9a6f61b615d3bbd2e51df0ba7555e8edd9267
tree3bea77d96b04036e810940716d8eeabebd1691ff
parent8da91ebb688eb1ac03f4dbe5c5bdd6c10b5de93e
iris: Avoid croaking when trying to create FBO surfaces with bad formats

create_surface happens before st_validate_attachment, which actually
does the "hey, this is a render target now, is that OK?" check

Fixes asserts in ./bin/arb_texture_view-rendering-formats, allowing the
rest of the tests to run.
src/gallium/drivers/iris/iris_state.c