Home | History | Annotate | Download | only in nv50

Lines Matching defs:sf

38    struct nv50_surface *sf = CALLOC_STRUCT(nv50_surface);
39 if (!sf)
42 pipe_reference_init(&sf->base.reference, 1);
43 pipe_resource_reference(&sf->base.texture, pbuf);
45 sf->base.format = templ->format;
46 sf->base.usage = templ->usage;
47 sf->base.u.buf.first_element = templ->u.buf.first_element;
48 sf->base.u.buf.last_element = templ->u.buf.last_element;
50 sf->offset =
51 templ->u.buf.first_element * util_format_get_blocksize(sf->base.format);
53 sf->offset &= ~0x7f; /* FIXME: RT_ADDRESS requires 128 byte alignment */
55 sf->width = templ->u.buf.last_element - templ->u.buf.first_element + 1;
56 sf->height = 1;
57 sf->depth = 1;
59 sf->base.width = sf->width;
60 sf->base.height = sf->height;
62 sf->base.context = pipe;
63 return &sf->base;