~ubuntu-branches/ubuntu/quantal/mesa/quantal

« back to all changes in this revision

Viewing changes to src/gallium/drivers/identity/id_screen.c

  • Committer: Package Import Robot
  • Author(s): Timo Aaltonen
  • Date: 2012-08-23 15:37:30 UTC
  • mfrom: (1.7.6)
  • Revision ID: package-import@ubuntu.com-20120823153730-c499sefj7btu4386
Tags: 9.0~git20120821.c1114c61-0ubuntu1
* Merge from unreleased debian git.
  - Includes support for ATI Trinity PCI IDs (LP: #1009089)
* rules, control, libgl1-mesa-swx11*: Remove swx11 support.
* Refresh patches:
  - drop 115_llvm_dynamic_linking.diff,
    117_nullptr_check_in_query_version.patch, and
    118_glsl_initialize_samplers.patch, all upstream
  - disable 116_use_shared_galliumcore.diff until it's reviewed and
    reworked to apply
* not-installed, libegl1-mesa-drivers-install.linux.in: Updated to
  match the single-pass build.
* libgl1-mesa-dri.*install.in: Drop libglsl.so, it's included in
  libdricore.so now.
* rules: Don't disable GLU on the common flags, we need to build it
  on the dri target.
* libglu*install.in: Fix the source file paths to match the build target.
  Drop the static lib from -dev since only shared libs get built.
* libgl1-mesa-dev.install.in: Fix the source file paths to match the
  build target.
* libgl1-mesa-dri.install.linux.in: Don't try to install libgallium.so,
  which isn't built yet.
* rules: Enable llvmpipe on armhf to see if it works or not.
* rules: Remove bin/install-sh on clean, and don't create a symlink for
  it.
* control: Add Pre-Depends on dpkg-dev due to the binaries using xz
  compression.

Show diffs side-by-side

added added

removed removed

Lines of Context:
188
188
}
189
189
 
190
190
 
191
 
static struct pipe_resource *
192
 
identity_screen_user_buffer_create(struct pipe_screen *_screen,
193
 
                                   void *ptr,
194
 
                                   unsigned bytes,
195
 
                                   unsigned usage)
196
 
{
197
 
   struct identity_screen *id_screen = identity_screen(_screen);
198
 
   struct pipe_screen *screen = id_screen->screen;
199
 
   struct pipe_resource *result;
200
 
 
201
 
   result = screen->user_buffer_create(screen,
202
 
                                       ptr,
203
 
                                       bytes,
204
 
                                       usage);
205
 
 
206
 
   if (result)
207
 
      return identity_resource_create(id_screen, result);
208
 
   return NULL;
209
 
}
210
 
 
211
 
 
212
 
 
213
191
static void
214
192
identity_screen_flush_frontbuffer(struct pipe_screen *_screen,
215
193
                                  struct pipe_resource *_resource,
264
242
                               timeout);
265
243
}
266
244
 
 
245
static uint64_t
 
246
identity_screen_get_timestamp(struct pipe_screen *_screen)
 
247
{
 
248
   struct identity_screen *id_screen = identity_screen(_screen);
 
249
   struct pipe_screen *screen = id_screen->screen;
 
250
 
 
251
   return screen->get_timestamp(screen);
 
252
}
 
253
 
267
254
struct pipe_screen *
268
255
identity_screen_create(struct pipe_screen *screen)
269
256
{
274
261
      return NULL;
275
262
   }
276
263
 
277
 
   id_screen->base.winsys = NULL;
278
 
 
279
264
   id_screen->base.destroy = identity_screen_destroy;
280
265
   id_screen->base.get_name = identity_screen_get_name;
281
266
   id_screen->base.get_vendor = identity_screen_get_vendor;
288
273
   id_screen->base.resource_from_handle = identity_screen_resource_from_handle;
289
274
   id_screen->base.resource_get_handle = identity_screen_resource_get_handle;
290
275
   id_screen->base.resource_destroy = identity_screen_resource_destroy;
291
 
   id_screen->base.user_buffer_create = identity_screen_user_buffer_create;
292
276
   id_screen->base.flush_frontbuffer = identity_screen_flush_frontbuffer;
293
277
   id_screen->base.fence_reference = identity_screen_fence_reference;
294
278
   id_screen->base.fence_signalled = identity_screen_fence_signalled;
295
279
   id_screen->base.fence_finish = identity_screen_fence_finish;
 
280
   id_screen->base.get_timestamp = identity_screen_get_timestamp;
296
281
 
297
282
   id_screen->screen = screen;
298
283