[Mesa-dev] [PATCH 4/9] st/mesa: Accelerate PBO uploads

Marek Olšák maraeo at gmail.com
Wed Jan 20 05:09:20 PST 2016


The fragment shader shouldn't be created if the driver doesn't support integers.

Marek

On Mon, Jan 18, 2016 at 11:22 PM, Nicolai Hähnle <nhaehnle at gmail.com> wrote:
> From: Fredrik Höglund <fredrik at kde.org>
>
> Create a PIPE_BUFFER sampler view on the pixel-unpack buffer, and draw
> the image on the texture with a fragment shader that maps fragment
> coordinates to buffer coordinates.
>
> Modifications by Nicolai Hähnle:
> - various cleanups and fixes (e.g. error handling, corner cases)
> - split try_pbo_upload into two functions, which will allow code to be
>   shared with compressed texture uploads
> - modify the source format selection to only test for support against
>   the PIPE_BUFFER target
> ---
>  src/mesa/state_tracker/st_cb_texture.c | 887 ++++++++++++++++++++++++++++++++-
>  src/mesa/state_tracker/st_cb_texture.h |   5 +
>  src/mesa/state_tracker/st_context.c    |   2 +
>  src/mesa/state_tracker/st_context.h    |   9 +
>  4 files changed, 890 insertions(+), 13 deletions(-)


More information about the mesa-dev mailing list