i965/wm: emit null buffer surfaces when null buffers are attached
authorSamuel Iglesias Gonsalvez <siglesias@igalia.com>
Thu, 16 Apr 2015 11:18:01 +0000 (13:18 +0200)
committerSamuel Iglesias Gonsalvez <siglesias@igalia.com>
Fri, 25 Sep 2015 06:39:21 +0000 (08:39 +0200)
commiteaa6f01c8d0c49d8ae637d8104163da9c45526ca
tree1bad82b730807784224ba4620c90df3c1eb93559
parentf5dd2c182275a9de57e5186491012c402a6248e0
i965/wm: emit null buffer surfaces when null buffers are attached

Otherwise we can expect odd things to happen if, for example, we ask
for the size of the attached buffer from shader code, since that
might query this value from the surface we uploaded and get random
results.

Signed-off-by: Samuel Iglesias Gonsalvez <siglesias@igalia.com>
Reviewed-by: Jordan Justen <jordan.l.justen@intel.com>
Reviewed-by: Kristian Høgsberg <krh@bitplanet.net>
src/mesa/drivers/dri/i965/brw_wm_surface_state.c