From: Henri Verbeet Subject: Re: [PATCH 1/2] d2d1: Reset bitmap brush sampler state only if parameters have changed. Message-Id: Date: Mon, 7 Jun 2021 16:51:24 +0200 In-Reply-To: <20210607103622.966812-1-nsivov@codeweavers.com> References: <20210607103622.966812-1-nsivov@codeweavers.com> On Mon, 7 Jun 2021 at 12:36, Nikolay Sivov wrote: > Signed-off-by: Nikolay Sivov > --- > dlls/d2d1/brush.c | 37 +++++++++++++++++++++---------------- > 1 file changed, 21 insertions(+), 16 deletions(-) > Note that the number of possible unique sampler states is fairly limited in d2d1. It may make more sense to just cache these in the d2d_device_context structure, instead of storing them in the d2d_brush structure.