Move pf_get_block() to u_format auxiliary module.
[mesa.git] / src / gallium / state_trackers / egl / egl_surface.c
index ddd9b04cd48a9994b143e5df2bc8c212ac2d78fb..35c8b106858cd309fd0babaca8d7b4ce2d35100c 100644 (file)
@@ -12,6 +12,7 @@
 
 #include "state_tracker/drm_api.h"
 
+#include "util/u_format.h"
 #include "util/u_rect.h"
 
 /*
@@ -118,7 +119,7 @@ drm_create_texture(_EGLDisplay *dpy,
        templat.format = PIPE_FORMAT_A8R8G8B8_UNORM;
        templat.width0 = w;
        templat.height0 = h;
-       pf_get_block(templat.format, &templat.block);
+       util_format_get_block(templat.format, &templat.block);
 
        texture = screen->texture_create(dev->screen,
                                         &templat);