Move the remaining format pf_get_* functions to u_format.h.
Previously they depended on format blocks, but after removing those they started depending on format encoding.
This commit is contained in:
@@ -64,6 +64,7 @@
|
||||
#include "pipe/p_format.h"
|
||||
#include "pipe/p_state.h"
|
||||
#include "pipe/p_inlines.h"
|
||||
#include "util/u_format.h"
|
||||
#include "util/u_memory.h"
|
||||
#include "util/u_string.h"
|
||||
#include "util/u_stream.h"
|
||||
@@ -670,9 +671,9 @@ void debug_dump_surface(const char *prefix,
|
||||
|
||||
debug_dump_image(prefix,
|
||||
texture->format,
|
||||
pf_get_blocksize(texture->format),
|
||||
pf_get_nblocksx(texture->format, transfer->width),
|
||||
pf_get_nblocksy(texture->format, transfer->height),
|
||||
util_format_get_blocksize(texture->format),
|
||||
util_format_get_nblocksx(texture->format, transfer->width),
|
||||
util_format_get_nblocksy(texture->format, transfer->height),
|
||||
transfer->stride,
|
||||
data);
|
||||
|
||||
|
Reference in New Issue
Block a user