softpipe: simplify an assertion
[mesa.git] / src / gallium / drivers / softpipe / sp_tile_cache.c
index 78b0efa46d27c879d74d15c67df909b4c32bc240..ab76009375c9d62156b80e0c75f6acf903fb9bbd 100644 (file)
@@ -369,7 +369,7 @@ sp_flush_tile_cache(struct softpipe_context *softpipe,
    struct pipe_surface *ps = tc->surface;
    int inuse = 0, pos;
 
-   if (ps && ps->buffer) {
+   if (ps) {
       /* caching a drawing surface */
       for (pos = 0; pos < NUM_ENTRIES; pos++) {
          struct softpipe_cached_tile *tile = tc->entries + pos;