Lines Matching refs:desc
111 const struct util_format_description *desc;
121 desc = util_format_description(format);
124 switch (desc->colorspace) {
180 result |= r300_get_swizzle_combined(desc->swizzle, swizzle_view,
183 result |= r300_get_swizzle_combined(desc->swizzle, swizzle_view,
189 if (desc->layout == UTIL_FORMAT_LAYOUT_S3TC) {
212 if (desc->layout == UTIL_FORMAT_LAYOUT_RGTC) {
241 if (desc->channel[i].type == UTIL_FORMAT_TYPE_FIXED ||
242 ((desc->channel[i].type == UTIL_FORMAT_TYPE_SIGNED ||
243 desc->channel[i].type == UTIL_FORMAT_TYPE_UNSIGNED) &&
244 (!desc->channel[i].normalized ||
245 desc->channel[i].pure_integer))) {
251 for (i = 0; i < desc->nr_channels; i++) {
252 if (desc->channel[i].type == UTIL_FORMAT_TYPE_SIGNED) {
258 for (i = 1; i < desc->nr_channels; i++) {
259 uniform = uniform && desc->channel[0].size == desc->channel[i].size;
264 switch (desc->nr_channels) {
266 if (desc->channel[0].size == 5 &&
267 desc->channel[1].size == 6 &&
268 desc->channel[2].size == 5) {
271 if (desc->channel[0].size == 5 &&
272 desc->channel[1].size == 5 &&
273 desc->channel[2].size == 6) {
276 if (desc->channel[0].size == 2 &&
277 desc->channel[1].size == 3 &&
278 desc->channel[2].size == 3) {
284 if (desc->channel[0].size == 5 &&
285 desc->channel[1].size == 5 &&
286 desc->channel[2].size == 5 &&
287 desc->channel[3].size == 1) {
290 if (desc->channel[0].size == 10 &&
291 desc->channel[1].size == 10 &&
292 desc->channel[2].size == 10 &&
293 desc->channel[3].size == 2) {
302 if (desc->channel[i].type != UTIL_FORMAT_TYPE_VOID) {
311 switch (desc->channel[i].type) {
314 if (!desc->channel[i].normalized &&
315 desc->colorspace != UTIL_FORMAT_COLORSPACE_SRGB) {
319 switch (desc->channel[i].size) {
321 switch (desc->nr_channels) {
330 switch (desc->nr_channels) {
341 switch (desc->nr_channels) {
353 switch (desc->channel[i].size) {
355 switch (desc->nr_channels) {
366 switch (desc->nr_channels) {
521 const struct util_format_description *desc;
524 desc = util_format_description(format);
528 if (desc->channel[i].type != UTIL_FORMAT_TYPE_VOID) {
537 switch (desc->channel[i].type) {
539 switch (desc->channel[i].size) {
541 switch (desc->nr_channels) {
555 switch (desc->nr_channels) {
571 switch (desc->channel[i].size) {
573 switch (desc->nr_channels) {
600 for (i = 0; i < desc->nr_channels; i++)
601 if (desc->channel[i].type != UTIL_FORMAT_TYPE_SIGNED)
809 struct r300_texture_desc *desc = &tex->tex;
816 depth = u_minify(desc->depth0, level);
834 if (desc->uses_stride_addressing) {
836 r300_stride_to_width(format, desc->stride_in_bytes[level]);
880 out->tile_config = R300_TXO_MACRO_TILE(desc->macrotile[level]) |
881 R300_TXO_MICRO_TILE(desc->microtile);