i965: Use genxml for emitting PIPE_CONTROL.
authorKenneth Graunke <kenneth@whitecape.org>
Thu, 1 Nov 2018 22:55:51 +0000 (15:55 -0700)
committerKenneth Graunke <kenneth@whitecape.org>
Tue, 12 Mar 2019 02:32:40 +0000 (19:32 -0700)
commitc6af96d1bc18cc5af733ca80b11f4a23c414abe1
tree7fdd4c7d48fa9b46cb791e485656ea6ac4f2be29
parent2c6f7124086ba6926e0b622c9d1a2c61fddcfb4f
i965: Use genxml for emitting PIPE_CONTROL.

While this does add a bunch of boilerplate, it also protects us against
the hardware moving bits, or changing their meaning.  For something as
finnicky as PIPE_CONTROL, the extra safety seems worth it.

We turn PIPE_CONTROL_* into an bitfield of arbitrary flags, and then
pack them appropriately.

Reviewed-by: Topi Pohjolainen <topi.pohjolainen@intel.com>
src/mesa/drivers/dri/i965/Makefile.sources
src/mesa/drivers/dri/i965/brw_context.h
src/mesa/drivers/dri/i965/brw_pipe_control.c
src/mesa/drivers/dri/i965/brw_pipe_control.h
src/mesa/drivers/dri/i965/brw_state.h
src/mesa/drivers/dri/i965/genX_pipe_control.c [new file with mode: 0644]
src/mesa/drivers/dri/i965/meson.build