i965/skl: Force a BINDING_TABLE_POINTER_* after push constant command
authorNeil Roberts <neil@linux.intel.com>
Thu, 29 Jan 2015 14:59:49 +0000 (14:59 +0000)
committerNeil Roberts <neil@linux.intel.com>
Fri, 30 Jan 2015 12:25:13 +0000 (12:25 +0000)
commita7eec6d620a333b722157cf1a2865b050d210aad
treeb2e05e856daea0312b4282f7495458e1a26e3dc5
parent083fb215e1afeeed0d2483e6242b0d7313191923
i965/skl: Force a BINDING_TABLE_POINTER_* after push constant command

According to the SKL bspec the 3DSTATE_CONSTANT_* commands only take
effect on the next corresponding 3DSTATE_BINDING_TABLE_POINTER_*
command. This patch just makes it set the BRW_NEW_SURFACES state when
uploading the push constants to ensure the binding tables will be
updated.

This fixes the fbo-blending-formats Piglit test and possibly others.

Reviewed-by: Kristian Høgsberg <krh@bitplanet.net>
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
src/mesa/drivers/dri/i965/gen7_vs_state.c