This isn't a hack, it's how this *should* work.
Acked-by: Jordan Justen <jordan.l.justen@intel.com>
struct pipe_resource templ = *pres;
templ.usage = PIPE_USAGE_STAGING;
templ.target = PIPE_BUFFER;
struct pipe_resource templ = *pres;
templ.usage = PIPE_USAGE_STAGING;
templ.target = PIPE_BUFFER;
- templ.bind = 0; // HACK: there's no transfer binding, but usage should tell us enough
templ.width0 = trans->base.layer_stride * box->depth;
templ.height0 = templ.depth0 = 0;
templ.last_level = 0;
templ.width0 = trans->base.layer_stride * box->depth;
templ.height0 = templ.depth0 = 0;
templ.last_level = 0;