[Mesa-dev] [PATCH 5/8] i965/upload: Actually comment the upload code.
Ian Romanick
idr at freedesktop.org
Thu Mar 13 09:05:49 PDT 2014
On 03/13/2014 01:57 AM, Kenneth Graunke wrote:
> diff --git a/src/mesa/drivers/dri/i965/intel_upload.c b/src/mesa/drivers/dri/i965/intel_upload.c
> index ec3109b..c767b7d 100644
> --- a/src/mesa/drivers/dri/i965/intel_upload.c
> +++ b/src/mesa/drivers/dri/i965/intel_upload.c
> @@ -25,7 +25,16 @@
> /**
> * @file intel_upload.c
> *
> - * Batched upload via BOs.
> + * A batched data upload mechanism which can efficiently copy user supplied
> + * data into buffer objects.
> + *
> + * OpenGL allows applications to provide data in user arrays, which may
> + * disappear or change contents at any time. The GPU can't use this memory
> + * directly, so we need to copy it into buffer objects.
> + *
> + * Often times, the amount of data we need to copy is small. On non-LLC
> + * platforms, it's more efficient to stage this data in a CPU-sized buffer
^^^^^
Is sized the word you mean here? Or should it be CPU-side?
> + * and only copy it to a BO when we have a larger amount of data.
> */
>
> #include "main/imports.h"
More information about the mesa-dev
mailing list