turnip: improve emit_textures
authorJonathan Marek <jonathan@marek.ca>
Fri, 15 Nov 2019 20:12:25 +0000 (15:12 -0500)
committerJonathan Marek <jonathan@marek.ca>
Fri, 6 Dec 2019 03:12:30 +0000 (22:12 -0500)
commit095d35eff8e7127ed33167c78d2c18e87f48bc9d
tree215b1c1d45aeeab17700282681609fc4f25d6d27
parent3ab4f994619920c2a02a9cf861538a82532ab2d3
turnip: improve emit_textures

Two things:
* Texture/sampler pointers aligned to the size of texture/sampler state
* Returning errors instead of crashing on OOM

Signed-off-by: Jonathan Marek <jonathan@marek.ca>
Reviewed-by: Kristian H. Kristensen <hoegsberg@google.com>
src/freedreno/vulkan/tu_cmd_buffer.c