mesa: fix mismatch when returning 64-bit bindless uniform handles
authorSamuel Pitoiset <samuel.pitoiset@gmail.com>
Tue, 25 Jul 2017 19:39:20 +0000 (21:39 +0200)
committerSamuel Pitoiset <samuel.pitoiset@gmail.com>
Fri, 28 Jul 2017 09:20:39 +0000 (11:20 +0200)
commitb38c9c57f272b54a190be4efd4297effa1a3deab
tree2fb51345f8b29cc7808b2b763da5ee15a7026146
parente0e79f0b08410a64e0b0f0f0f95317e473e4db86
mesa: fix mismatch when returning 64-bit bindless uniform handles

The slower convert-and-copy process performs a bad conversion
because it converts the value to signed 64-bit integer, but
bindless uniform handles are considered unsigned 64-bit.

This fixes "Check glUniform*() with mixed texture units/handles"
from arb_bindless_texture-uniform piglit.

Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Cc: "17.2" <mesa-stable@lists.freedesktop.org>
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
src/mesa/main/uniform_query.cpp