Home | History | Annotate | Download | only in nv50

Lines Matching refs:sf

39    struct nv50_surface *sf = CALLOC_STRUCT(nv50_surface);
40 if (!sf)
43 pipe_reference_init(&sf->base.reference, 1);
44 pipe_resource_reference(&sf->base.texture, pbuf);
46 sf->base.format = templ->format;
47 sf->base.writable = templ->writable;
48 sf->base.u.buf.first_element = templ->u.buf.first_element;
49 sf->base.u.buf.last_element = templ->u.buf.last_element;
51 sf->offset =
52 templ->u.buf.first_element * util_format_get_blocksize(sf->base.format);
54 sf->offset &= ~0x7f; /* FIXME: RT_ADDRESS requires 128 byte alignment */
56 sf->width = templ->u.buf.last_element - templ->u.buf.first_element + 1;
57 sf->height = 1;
58 sf->depth = 1;
60 sf->base.width = sf->width;
61 sf->base.height = sf->height;
63 sf->base.context = pipe;
64 return &sf->base;