iris: Add restriction to 3DSTATE_CONSTANT_ packets.
authorRafael Antognolli <rafael.antognolli@intel.com>
Tue, 3 Dec 2019 19:15:38 +0000 (11:15 -0800)
committerRafael Antognolli <rafael.antognolli@intel.com>
Wed, 4 Dec 2019 20:48:25 +0000 (20:48 +0000)
commit50f60d69e45d5bac2aa44aeaddb6e2b5436f01d4
tree676d6bf0d5a86302683ec5534c12437b92104cad
parentd3e339364f13f09401fdf32df05f88a821879d68
iris: Add restriction to 3DSTATE_CONSTANT_ packets.

The following programming note shows up in all 3DSTATE_CONSTANT_*
packets:

   "The sum of all four read length fields must be less than or equal to
   the size of 64."

The backend compiler should guarantee this for us, so let's just add a
check here.

Reviewed-by: Caio Marcelo de Oliveira Filho <caio.oliveira@intel.com>
src/gallium/drivers/iris/iris_state.c