Lines Matching refs:format
177 bool r600_fmt_is_valid_color(u32 format) in r600_fmt_is_valid_color() argument
179 if (format >= ARRAY_SIZE(color_formats_table)) in r600_fmt_is_valid_color()
182 if (color_formats_table[format].valid_color) in r600_fmt_is_valid_color()
188 bool r600_fmt_is_valid_texture(u32 format, enum radeon_family family) in r600_fmt_is_valid_texture() argument
190 if (format >= ARRAY_SIZE(color_formats_table)) in r600_fmt_is_valid_texture()
193 if (family < color_formats_table[format].min_family) in r600_fmt_is_valid_texture()
196 if (color_formats_table[format].blockwidth > 0) in r600_fmt_is_valid_texture()
202 int r600_fmt_get_blocksize(u32 format) in r600_fmt_get_blocksize() argument
204 if (format >= ARRAY_SIZE(color_formats_table)) in r600_fmt_get_blocksize()
207 return color_formats_table[format].blocksize; in r600_fmt_get_blocksize()
210 int r600_fmt_get_nblocksx(u32 format, u32 w) in r600_fmt_get_nblocksx() argument
214 if (format >= ARRAY_SIZE(color_formats_table)) in r600_fmt_get_nblocksx()
217 bw = color_formats_table[format].blockwidth; in r600_fmt_get_nblocksx()
224 int r600_fmt_get_nblocksy(u32 format, u32 h) in r600_fmt_get_nblocksy() argument
228 if (format >= ARRAY_SIZE(color_formats_table)) in r600_fmt_get_nblocksy()
231 bh = color_formats_table[format].blockheight; in r600_fmt_get_nblocksy()
358 u32 format; in r600_cs_track_validate_cb() local
363 format = G_0280A0_FORMAT(track->cb_color_info[i]); in r600_cs_track_validate_cb()
364 if (!r600_fmt_is_valid_color(format)) { in r600_cs_track_validate_cb()
366 __func__, __LINE__, format, in r600_cs_track_validate_cb()
385 array_check.blocksize = r600_fmt_get_blocksize(format); in r600_cs_track_validate_cb()
429 tmp = r600_fmt_get_nblocksy(format, height) * r600_fmt_get_nblocksx(format, pitch) * in r600_cs_track_validate_cb()
430 r600_fmt_get_blocksize(format) * nsamples; in r600_cs_track_validate_cb()
455 pitch, height, r600_fmt_get_nblocksx(format, pitch), in r600_cs_track_validate_cb()
456 r600_fmt_get_nblocksy(format, height), in r600_cs_track_validate_cb()
457 r600_fmt_get_blocksize(format)); in r600_cs_track_validate_cb()
752 u32 format = G_0280A0_FORMAT(track->cb_color_info[i]); in r600_cs_track_check() local
754 if (format != V_0280A0_COLOR_INVALID && in r600_cs_track_check()
1410 unsigned w0, unsigned h0, unsigned d0, unsigned nsamples, unsigned format, in r600_texture_size() argument
1421 blocksize = r600_fmt_get_blocksize(format); in r600_texture_size()
1428 nbx = r600_fmt_get_nblocksx(format, width); in r600_texture_size()
1433 nby = r600_fmt_get_nblocksy(format, height); in r600_texture_size()
1483 u32 format; in r600_check_texture_resource() local
1511 format = G_038004_DATA_FORMAT(word1); in r600_check_texture_resource()
1520 array_check.blocksize = r600_fmt_get_blocksize(format); in r600_check_texture_resource()
1549 if (!r600_fmt_is_valid_texture(format, p->family)) { in r600_check_texture_resource()
1551 __func__, __LINE__, format); in r600_check_texture_resource()
1590 r600_texture_size(nfaces, blevel, llevel, w0, h0, d0, array_check.nsamples, format, in r600_check_texture_resource()
1597 array_check.array_mode, format, word2, in r600_check_texture_resource()