lima/ppir: Add gl_FragCoord handling
authorAndreas Baierl <ichgeh@imkreisrum.de>
Fri, 26 Apr 2019 13:06:13 +0000 (15:06 +0200)
committerQiang Yu <yuq825@gmail.com>
Mon, 29 Apr 2019 02:46:44 +0000 (02:46 +0000)
commitc960323a81456b05570ed9647f19207e7733aa11
treee1a5735c8d09c4b52b255584623df04aea49b4fd
parentb82de2b4d702789620f84c70577aa3e106d6ae4f
lima/ppir: Add gl_FragCoord handling

Treat gl_FragCoord variable as a system value and lower the w component
with a nir pass.
Add the necessary bits for correct codegen.

Signed-off-by: Andreas Baierl <ichgeh@imkreisrum.de>
Reviewed-by: Qiang Yu <yuq825@gmail.com>
src/gallium/drivers/lima/ir/pp/codegen.c
src/gallium/drivers/lima/ir/pp/nir.c
src/gallium/drivers/lima/ir/pp/node.c
src/gallium/drivers/lima/ir/pp/node_to_instr.c
src/gallium/drivers/lima/ir/pp/ppir.h
src/gallium/drivers/lima/lima_program.c
src/gallium/drivers/lima/lima_screen.c