OSDN Git Service

dri: Update region's width/height on every PutSurface
authorChris Wilson <chris@chris-wilson.co.uk>
Tue, 3 Feb 2015 16:59:54 +0000 (16:59 +0000)
committerXiang, Haihao <haihao.xiang@intel.com>
Wed, 4 Feb 2015 03:06:57 +0000 (11:06 +0800)
commit31ca7cfd23045f9702780032ec9b30209a2e7fee
tree16f9fd470a01df0c74ad6949b099b026b0fb1c29
parenta83bf50faa7b2c65e4ee5a4e8e58ac7a999f862e
dri: Update region's width/height on every PutSurface

Currently we expect that if a surface changes size, we will be given a
new buffer with a new name. This is not always true as the ddx may try
to keep the same buffer for the client if it is large enough for the new
size. Since we always know the width/height of the buffer, we can pass
that information along every time into the intel_region struct.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Cc: Gwenole Beauchesne <gwenole.beauchesne@intel.com>
Cc: Dmitry Ermilov <dmitry.ermilov@intel.com>
Reviewed-by: Sean V Kelley <seanvk@posteo.de>
Tested-by: Sean V Kelley <seanvk@posteo.de>
src/i965_output_dri.c