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

« back to all changes in this revision

Viewing changes to src/gallium/drivers/llvmpipe/lp_query.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:
85
85
llvmpipe_get_query_result(struct pipe_context *pipe, 
86
86
                          struct pipe_query *q,
87
87
                          boolean wait,
88
 
                          void *vresult)
 
88
                          union pipe_query_result *vresult)
89
89
{
90
90
   struct llvmpipe_query *pq = llvmpipe_query(q);
91
91
   uint64_t *result = (uint64_t *)vresult;
166
166
   wait = (lp->render_cond_mode == PIPE_RENDER_COND_WAIT ||
167
167
           lp->render_cond_mode == PIPE_RENDER_COND_BY_REGION_WAIT);
168
168
 
169
 
   b = pipe->get_query_result(pipe, lp->render_cond_query, wait, &result);
 
169
   b = pipe->get_query_result(pipe, lp->render_cond_query, wait, (void*)&result);
170
170
   if (b)
171
171
      return result > 0;
172
172
   else