mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-08 15:38:09 +02:00
st/nine: Optimize ColorFill
When we lock the whole surface to overwrite it, we can use DISCARD. Signed-off-by: Axel Davy <axel.davy@ens.fr>
This commit is contained in:
parent
9bf1da05d9
commit
7b154ac04d
1 changed files with 1 additions and 1 deletions
|
|
@ -1800,7 +1800,7 @@ NineDevice9_ColorFill( struct NineDevice9 *This,
|
|||
union util_color uc;
|
||||
HRESULT hr;
|
||||
/* XXX: lock pRect and fix util_fill_rect */
|
||||
hr = NineSurface9_LockRect(surf, &lock, NULL, 0);
|
||||
hr = NineSurface9_LockRect(surf, &lock, NULL, pRect ? 0 : D3DLOCK_DISCARD);
|
||||
if (FAILED(hr))
|
||||
return hr;
|
||||
util_pack_color_ub(color >> 16, color >> 8, color >> 0, color >> 24,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue