search for: sampler_state_cr

Displaying 4 results from an estimated 4 matches for "sampler_state_cr".

2014 Aug 31
2
[Mesa-stable] [PATCH 2/2] nv50: zero out unbound samplers
...on't try to read them again later. >>> >> Would it be worth doing a similar thing with the unlocked samplers below the >> nr mark ? It seems to me that we might be leaking nv50->samplers[s][i], or >> perhaps I'm missing something ? > > Can you elaborate? sampler_state_create/delete deal with allocation > and deallocation. samplers starts out as NULL. I'm just making sure > that a subsequent call with a larger number of samplers doesn't try to > unlock potentially-deleted samplers. > for (i = 0; i < nr; ++i) { struct nv50_tsc_entry...
2014 Aug 30
3
[Mesa-stable] [PATCH 2/2] nv50: zero out unbound samplers
On 30/08/14 23:02, Ilia Mirkin wrote: > Samplers are only defined up to num_samplers, so set all samplers above > nr to NULL so that we don't try to read them again later. > Would it be worth doing a similar thing with the unlocked samplers below the nr mark ? It seems to me that we might be leaking nv50->samplers[s][i], or perhaps I'm missing something ? -Emil >
2014 Aug 30
0
[Mesa-stable] [PATCH 2/2] nv50: zero out unbound samplers
...t; nr to NULL so that we don't try to read them again later. >> > Would it be worth doing a similar thing with the unlocked samplers below the > nr mark ? It seems to me that we might be leaking nv50->samplers[s][i], or > perhaps I'm missing something ? Can you elaborate? sampler_state_create/delete deal with allocation and deallocation. samplers starts out as NULL. I'm just making sure that a subsequent call with a larger number of samplers doesn't try to unlock potentially-deleted samplers. -ilia > > -Emil > >> Tested-by: Christian Ruppert <idl0r at q...
2014 Aug 31
0
[Mesa-stable] [PATCH 2/2] nv50: zero out unbound samplers
...em again later. >>>> >>> Would it be worth doing a similar thing with the unlocked samplers below the >>> nr mark ? It seems to me that we might be leaking nv50->samplers[s][i], or >>> perhaps I'm missing something ? >> >> Can you elaborate? sampler_state_create/delete deal with allocation >> and deallocation. samplers starts out as NULL. I'm just making sure >> that a subsequent call with a larger number of samplers doesn't try to >> unlock potentially-deleted samplers. >> > > for (i = 0; i < nr; ++i) { >...