freedreno/ir3: Handle GL_NONE in get_num_components_for_glformat()
authorEduardo Lima Mitev <elima@igalia.com>
Wed, 19 Dec 2018 08:18:04 +0000 (09:18 +0100)
committerEduardo Lima Mitev <elima@igalia.com>
Wed, 19 Dec 2018 21:49:05 +0000 (22:49 +0100)
commitc2ebc380524263df5447d9cee646f0024caea6f4
treeccfa8a520c2d779773dd7904921791916dd269e5
parent90818558f0e8e50cd20f637775f072b5511edfd0
freedreno/ir3: Handle GL_NONE in get_num_components_for_glformat()

An earlier patch that introduced the function failed to handle the case
where an image format layout qualifier is not specified, which is allowed
on desktop GL profiles. In these cases, nir_variable's image format is
GL_NONE, and we don't need to print a debug message for those.

Reviewed-by: Ilia Mirkin <imirkin@alum.mit.edu>
Reviewed-by: Rob Clark <robdclark@gmail.com>
src/freedreno/ir3/ir3_compiler_nir.c