summaryrefslogtreecommitdiffstats
path: root/src/mesa/swrast/s_renderbuffer.c
diff options
context:
space:
mode:
authorKristian Høgsberg Kristensen <[email protected]>2015-10-05 14:02:56 -0700
committerKristian Høgsberg Kristensen <[email protected]>2015-10-08 12:15:03 -0700
commit365e5d78924ffe7d4ce47e3fbadc35c7105e5d34 (patch)
tree092cc7eaeb913bef595b91de4b693164beed0579 /src/mesa/swrast/s_renderbuffer.c
parentcc4683992bf34fb09871e976abb8eebe7d68c3fe (diff)
i965: Use util_next_power_of_two() for brw_get_scratch_size()
This function computes the next power of two, but at least 1024. We can do that by bitwise or'ing in 1023 and calling util_next_power_of_two(). We use brw_get_scratch_size() from the compiler so we need it out of brw_program.c. We could move it to brw_shader.cpp, but let's make it a small inline function instead. Reviewed-by: Topi Pohjolainen <[email protected]> Signed-off-by: Kristian Høgsberg Kristensen <[email protected]>
Diffstat (limited to 'src/mesa/swrast/s_renderbuffer.c')
0 files changed, 0 insertions, 0 deletions