[Mesa-dev] [PATCH 3/3] r600g: only emit blocks when they are changed

Dave Airlie airlied at gmail.com
Mon Apr 18 03:14:14 PDT 2011


On Thu, Apr 14, 2011 at 4:36 AM, Bas Nieuwenhuizen
<bas at basnieuwenhuizen.nl> wrote:
> previously, we always emitted blocks that were set before a draw, after this
>  patch the block only gets emitted when it is really changed.
>
> Also added a force parameter to r600_context_pipe_state_set, because the
> shader constant buffers need 2 registers in different blocks updated, even
> if only one is dirty, so those blocks are always marked dirty when they
>  are set.

Hi Bas,

I just realised I NIHed nearly exactly this patch modulo cleaning up
the code to use the loops etc,
in the patch I posted.

I'd be interested if you could review it and see if it works the same,

Thanks,
Dave.


More information about the mesa-dev mailing list